mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 14:04:25 +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
|
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
|
||||||
|
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user