Ver Fonte

Update notebook extension command as well

Saul Shanabrook há 6 anos atrás
pai
commit
97b32bbc84
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      packages/notebook-extension/src/index.ts

+ 3 - 1
packages/notebook-extension/src/index.ts

@@ -1562,7 +1562,9 @@ function addCommands(
         app.commands.execute('docmanager:save');
       }
     },
-    isEnabled
+    isEnabled: args => {
+      return isEnabled() && commands.isEnabled('docmanager:save', args);
+    }
   });
 }