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:
Adrien Destugues
2016-08-21 16:53:31 +02:00
parent 36a9daf663
commit a6e2839785
-3
View File
@@ -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