diff options
author | 2022-01-11 13:08:39 +0100 | |
---|---|---|
committer | 2022-01-11 13:08:39 +0100 | |
commit | 820a92de96652967e809e7f3ba163a4654e40ffc (patch) | |
tree | f67dda7ad4aec96db17c2bcdfa4f02154526a34e /src/electron/ipc-api | |
parent | 5.6.11-nightly.0 [skip ci] (diff) | |
download | ferdium-app-820a92de96652967e809e7f3ba163a4654e40ffc.tar.gz ferdium-app-820a92de96652967e809e7f3ba163a4654e40ffc.tar.zst ferdium-app-820a92de96652967e809e7f3ba163a4654e40ffc.zip |
#329 Remove blocking listener before autoUpdater.quitAndInstall
Diffstat (limited to 'src/electron/ipc-api')
-rw-r--r-- | src/electron/ipc-api/autoUpdate.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/electron/ipc-api/autoUpdate.ts b/src/electron/ipc-api/autoUpdate.ts index d768d17f7..3cfd56591 100644 --- a/src/electron/ipc-api/autoUpdate.ts +++ b/src/electron/ipc-api/autoUpdate.ts | |||
@@ -25,6 +25,7 @@ export default (params: { mainWindow: BrowserWindow; settings: any }) => { | |||
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 | app.removeAllListeners('window-all-closed'); |
28 | params.mainWindow.removeAllListeners('close'); | ||
28 | autoUpdater.quitAndInstall(); | 29 | autoUpdater.quitAndInstall(); |
29 | } | 30 | } |
30 | } catch (error) { | 31 | } catch (error) { |