mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 13:48:59 +00:00
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:
parent
3c4031427d
commit
a0afcdb391
@ -330,7 +330,7 @@ Menuset
|
||||
Separator
|
||||
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 "Close Current View|w" "close-tab-group"
|
||||
OptItem "Close Current View|w" "close-tab-group"
|
||||
Item "Fullscreen|l" "ui-toggle fullscreen"
|
||||
Submenu "Toolbars|b" "toolbars"
|
||||
Separator
|
||||
|
@ -1702,7 +1702,7 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
|
||||
break;
|
||||
|
||||
case LFUN_CLOSE_TAB_GROUP:
|
||||
enable = d.currentTabWorkArea();
|
||||
enable = d.tabWorkAreaCount() > 1;
|
||||
break;
|
||||
|
||||
case LFUN_TOOLBAR_TOGGLE: {
|
||||
|
Loading…
Reference in New Issue
Block a user