mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IpnbRunAllCellsAction shouldn't always be enabled
Signed-off-by: peter <peter@jetbrains.com>
This commit is contained in:
+1
-4
@@ -75,9 +75,6 @@ public class IpnbRunAllCellsAction extends IpnbRunCellBaseAction {
|
||||
final DataContext context = e.getDataContext();
|
||||
final IpnbFileEditor ipnbEditor = IpnbFileEditor.DATA_KEY.getData(context);
|
||||
final Presentation presentation = e.getPresentation();
|
||||
if (ipnbEditor == null) {
|
||||
presentation.setEnabledAndVisible(false);
|
||||
}
|
||||
presentation.setEnabledAndVisible(true);
|
||||
presentation.setEnabledAndVisible(ipnbEditor != null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user