From 98e179745d5c2ff4f0be8c66671da2a116cf3afc Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Sat, 22 Dec 2018 00:05:08 +0100 Subject: [PATCH] fix: quit --- app/main.dev.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/main.dev.js b/app/main.dev.js index 718e1044f5f..74c4d665ea2 100644 --- a/app/main.dev.js +++ b/app/main.dev.js @@ -276,6 +276,12 @@ app.on('open-url', (event, protocolUrl) => { handleOpenUrl(protocolUrl) }) +app.on('window-all-closed', () => { + if (os.platform() !== 'darwin') { + app.quit() + } +}) + /** * Someone tried to run a second instance, we should focus our window. */