Show clear outputs only when there is kernel.

This commit is contained in:
rebornix 2021-05-26 12:12:43 -07:00
parent 9eb4eff77b
commit 99bcc8e245

View file

@ -1590,7 +1590,10 @@ registerAction2(class ClearAllCellOutputsAction extends NotebookAction {
},
{
id: MenuId.NotebookToolbar,
when: ContextKeyExpr.equals('config.notebook.globalToolbar', true),
when: ContextKeyExpr.and(
executeNotebookCondition,
ContextKeyExpr.equals('config.notebook.globalToolbar', true)
),
group: 'navigation/execute',
order: 0
}