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
+5 -8
View File
@@ -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);
}