diff options
author | 2021-12-18 03:39:00 +0100 | |
---|---|---|
committer | 2021-12-18 03:39:00 +0100 | |
commit | 8ba714e856420da09620a7d55d6412f5e8c5c027 (patch) | |
tree | 9ecc579bdf5b26eea5e4a2eb36222f3499c6d59d | |
parent | Upgrade 'electron' to '15.3.4' (diff) | |
download | ferdium-app-8ba714e856420da09620a7d55d6412f5e8c5c027.tar.gz ferdium-app-8ba714e856420da09620a7d55d6412f5e8c5c027.tar.zst ferdium-app-8ba714e856420da09620a7d55d6412f5e8c5c027.zip |
Remove app.quit hack hiding autoUpdater.quitAndInstall failure
-rw-r--r-- | src/electron/ipc-api/autoUpdate.ts | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/electron/ipc-api/autoUpdate.ts b/src/electron/ipc-api/autoUpdate.ts index 33af57efc..284e50e29 100644 --- a/src/electron/ipc-api/autoUpdate.ts +++ b/src/electron/ipc-api/autoUpdate.ts | |||
@@ -33,10 +33,6 @@ export default (params: { mainWindow: BrowserWindow; settings: any }) => { | |||
33 | } else if (args.action === 'install') { | 33 | } else if (args.action === 'install') { |
34 | debug('installing update'); | 34 | debug('installing update'); |
35 | autoUpdater.quitAndInstall(); | 35 | autoUpdater.quitAndInstall(); |
36 | // we need to send a quit event | ||
37 | setTimeout(() => { | ||
38 | app.quit(); | ||
39 | }, 20); | ||
40 | } | 36 | } |
41 | } catch (error) { | 37 | } catch (error) { |
42 | event.sender.send('autoUpdate', { error }); | 38 | event.sender.send('autoUpdate', { error }); |