Browse Source

del app.appQuit()

哆啦好梦 2 years ago
parent
commit
1a20a6af25
1 changed files with 2 additions and 2 deletions
  1. 2 2
      electron/addon/autoUpdater/index.js

+ 2 - 2
electron/addon/autoUpdater/index.js

@@ -21,7 +21,7 @@ class AutoUpdaterAddon {
   create () {
     Log.info('[addon:autoUpdater] load');
 
-    const app = this.app;
+    // const app = this.app;
     const cfg = Conf.getValue('addons.autoUpdater');
     if ((is.windows() && cfg.windows)
         || (is.macOS() && cfg.macOS)
@@ -106,7 +106,7 @@ class AutoUpdaterAddon {
       info.desc = '下载完成';
       this.sendStatusToWindow(info);
       // quit and update
-      app.appQuit();
+      // app.appQuit();
       autoUpdater.quitAndInstall();
     });
   }