diff options
author | 2022-01-01 17:49:54 +0100 | |
---|---|---|
committer | 2022-01-01 17:49:54 +0100 | |
commit | 610923e48784352fcb45c6a56a185682690c16a3 (patch) | |
tree | 7cc92adedf00dde777af7a8422a65e5a3668b6cc | |
parent | Revert "Increase retry max_attempts for npm i on windows" (diff) | |
download | ferdium-app-610923e48784352fcb45c6a56a185682690c16a3.tar.gz ferdium-app-610923e48784352fcb45c6a56a185682690c16a3.tar.zst ferdium-app-610923e48784352fcb45c6a56a185682690c16a3.zip |
#329 Remove blocking listener before autoUpdater.quitAndInstall
-rw-r--r-- | src/electron/ipc-api/autoUpdate.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/electron/ipc-api/autoUpdate.ts b/src/electron/ipc-api/autoUpdate.ts index aed87455e..d768d17f7 100644 --- a/src/electron/ipc-api/autoUpdate.ts +++ b/src/electron/ipc-api/autoUpdate.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { ipcMain, BrowserWindow } from 'electron'; | 1 | import { app, ipcMain, BrowserWindow } from 'electron'; |
2 | import { autoUpdater } from 'electron-updater'; | 2 | import { autoUpdater } from 'electron-updater'; |
3 | import { isMac, isWindows } from '../../environment'; | 3 | import { isMac, isWindows } from '../../environment'; |
4 | 4 | ||
@@ -24,6 +24,7 @@ export default (params: { mainWindow: BrowserWindow; settings: any }) => { | |||
24 | autoUpdater.checkForUpdates(); | 24 | autoUpdater.checkForUpdates(); |
25 | } else if (args.action === 'install') { | 25 | } else if (args.action === 'install') { |
26 | debug('installing update'); | 26 | debug('installing update'); |
27 | app.removeAllListeners('window-all-closed'); | ||
27 | autoUpdater.quitAndInstall(); | 28 | autoUpdater.quitAndInstall(); |
28 | } | 29 | } |
29 | } catch (error) { | 30 | } catch (error) { |