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"
|
||||
|
||||
|
||||
const static int32 kMaxTabs = 6;
|
||||
const static int32 kTermViewOffset = 3;
|
||||
|
||||
const static int32 kMinimumFontSize = 8;
|
||||
@@ -1213,13 +1212,11 @@ TermWindow::_DoPrint()
|
||||
void
|
||||
TermWindow::_NewTab()
|
||||
{
|
||||
if (fTabView->CountTabs() < kMaxTabs) {
|
||||
ActiveProcessInfo info;
|
||||
if (_ActiveTermView()->GetActiveProcessInfo(info))
|
||||
_AddTab(NULL, info.CurrentDirectory());
|
||||
else
|
||||
_AddTab(NULL);
|
||||
}
|
||||
ActiveProcessInfo info;
|
||||
if (_ActiveTermView()->GetActiveProcessInfo(info))
|
||||
_AddTab(NULL, info.CurrentDirectory());
|
||||
else
|
||||
_AddTab(NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user