diff --git a/src/main/autoUpdate.js b/src/main/autoUpdate.js index 5f4cd20e..76c71ff7 100644 --- a/src/main/autoUpdate.js +++ b/src/main/autoUpdate.js @@ -20,6 +20,8 @@ export function quitAndInstall() { setImmediate(() => { const browserWindows = BrowserWindow.getAllWindows() + // Fixes quitAndInstall not quitting on macOS, as suggested on + // https://github.com/electron-userland/electron-builder/issues/1604#issuecomment-306709572 app.removeAllListeners('window-all-closed') browserWindows.forEach(browserWindow => { browserWindow.removeAllListeners('close')