LFUN_CLOSE_TAB_GROUP does exactly the same thing as

LFUN_BUFFER_CLOSE_ALL if there's only one tab group open, so there's
no need to enable it in that case.
This commit is contained in:
Richard Heck 2012-07-14 22:13:40 -04:00
parent 3c4031427d
commit a0afcdb391
2 changed files with 2 additions and 2 deletions

View File

@ -330,7 +330,7 @@ Menuset
Separator Separator
Item "Split View Into Left and Right Half|i" "split-view horizontal" Item "Split View Into Left and Right Half|i" "split-view horizontal"
Item "Split View Into Upper and Lower Half|e" "split-view vertical" Item "Split View Into Upper and Lower Half|e" "split-view vertical"
Item "Close Current View|w" "close-tab-group" OptItem "Close Current View|w" "close-tab-group"
Item "Fullscreen|l" "ui-toggle fullscreen" Item "Fullscreen|l" "ui-toggle fullscreen"
Submenu "Toolbars|b" "toolbars" Submenu "Toolbars|b" "toolbars"
Separator Separator

View File

@ -1702,7 +1702,7 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
break; break;
case LFUN_CLOSE_TAB_GROUP: case LFUN_CLOSE_TAB_GROUP:
enable = d.currentTabWorkArea(); enable = d.tabWorkAreaCount() > 1;
break; break;
case LFUN_TOOLBAR_TOGGLE: { case LFUN_TOOLBAR_TOGGLE: {