This commit is contained in:
rebornix
2021-06-02 17:02:38 -07:00
parent 2356d7c5b7
commit 66917f4179

View File

@@ -1872,7 +1872,10 @@ registerAction2(class NotebookConfigureLayoutAction extends Action2 {
{
id: MenuId.EditorTitle,
group: 'notebookLayout',
when: ContextKeyExpr.notEquals('config.notebook.globalToolbar', true),
when: ContextKeyExpr.and(
NOTEBOOK_IS_ACTIVE_EDITOR,
ContextKeyExpr.notEquals('config.notebook.globalToolbar', true)
),
order: 0
},
{
@@ -1900,7 +1903,10 @@ registerAction2(class NotebookConfigureLayoutAction extends Action2 {
{
id: MenuId.EditorTitle,
group: 'notebookLayout',
when: ContextKeyExpr.notEquals('config.notebook.globalToolbar', true),
when: ContextKeyExpr.and(
NOTEBOOK_IS_ACTIVE_EDITOR,
ContextKeyExpr.notEquals('config.notebook.globalToolbar', true)
),
order: 1
},
{