|
@ -20,6 +20,8 @@ export function quitAndInstall() { |
|
|
setImmediate(() => { |
|
|
setImmediate(() => { |
|
|
const browserWindows = BrowserWindow.getAllWindows() |
|
|
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') |
|
|
app.removeAllListeners('window-all-closed') |
|
|
browserWindows.forEach(browserWindow => { |
|
|
browserWindows.forEach(browserWindow => { |
|
|
browserWindow.removeAllListeners('close') |
|
|
browserWindow.removeAllListeners('close') |
|
|