Explorar el Código

Simplify status bar application format logic

Afshin T. Darian hace 5 años
padre
commit
19e5329353
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      packages/statusbar-extension/src/index.ts

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

@@ -99,7 +99,7 @@ const statusBar: JupyterFrontEndPlugin<IStatusBar> = {
       mainMenu.viewMenu.addGroup([{ command }], 1);
     }
 
-    let ready: Promise<void>;
+    let ready = app.restored;
     if (settingRegistry) {
       const loadSettings = settingRegistry.load(STATUSBAR_PLUGIN_ID);
       const updateSettings = (settings: ISettingRegistry.ISettings): void => {
@@ -117,8 +117,6 @@ const statusBar: JupyterFrontEndPlugin<IStatusBar> = {
         .catch((reason: Error) => {
           console.error(reason.message);
         });
-    } else {
-      ready = app.restored;
     }
 
     // Hide the status bar in the mobile format.