From 8ba714e856420da09620a7d55d6412f5e8c5c027 Mon Sep 17 00:00:00 2001 From: kytwb Date: Sat, 18 Dec 2021 03:39:00 +0100 Subject: Remove app.quit hack hiding autoUpdater.quitAndInstall failure --- src/electron/ipc-api/autoUpdate.ts | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/electron/ipc-api') 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 }) => { } else if (args.action === 'install') { debug('installing update'); autoUpdater.quitAndInstall(); - // we need to send a quit event - setTimeout(() => { - app.quit(); - }, 20); } } catch (error) { event.sender.send('autoUpdate', { error }); -- cgit v1.2.3-54-g00ecf