From 335f8518bdd56227ca1f77753121acb5544079cb Mon Sep 17 00:00:00 2001 From: Thibaut Boustany Date: Sat, 19 May 2018 20:28:03 +0200 Subject: [PATCH] Comment added --- src/main/autoUpdate.js | 2 ++ 1 file changed, 2 insertions(+) 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')