Terminal: remove limitation to 6 tabs
- This has been bothering me for quite a while. My screen is wide enough to accomodate more, and even if they don't fit the BTabView, it's still possible to navigate many more tabs with the keyboard shortcuts. - We should still remember to fix BTabView to accomodate more tabs than it can fit with some scrolling support or similar, however.
This commit is contained in:
@@ -64,7 +64,6 @@
|
|||||||
#include "TitlePlaceholderMapper.h"
|
#include "TitlePlaceholderMapper.h"
|
||||||
|
|
||||||
|
|
||||||
const static int32 kMaxTabs = 6;
|
|
||||||
const static int32 kTermViewOffset = 3;
|
const static int32 kTermViewOffset = 3;
|
||||||
|
|
||||||
const static int32 kMinimumFontSize = 8;
|
const static int32 kMinimumFontSize = 8;
|
||||||
@@ -1213,14 +1212,12 @@ TermWindow::_DoPrint()
|
|||||||
void
|
void
|
||||||
TermWindow::_NewTab()
|
TermWindow::_NewTab()
|
||||||
{
|
{
|
||||||
if (fTabView->CountTabs() < kMaxTabs) {
|
|
||||||
ActiveProcessInfo info;
|
ActiveProcessInfo info;
|
||||||
if (_ActiveTermView()->GetActiveProcessInfo(info))
|
if (_ActiveTermView()->GetActiveProcessInfo(info))
|
||||||
_AddTab(NULL, info.CurrentDirectory());
|
_AddTab(NULL, info.CurrentDirectory());
|
||||||
else
|
else
|
||||||
_AddTab(NULL);
|
_AddTab(NULL);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user