From 2ccd8c21f380cadc54c77ce3c013845106f570a4 Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 4 May 2017 22:59:24 -0700 Subject: [PATCH] Limit hidden window behavior to osx Only on osx is it customary to remain running in the background when the window is closed. // FREEBIE --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 5d305d035..cf501e735 100644 --- a/main.js +++ b/main.js @@ -130,7 +130,7 @@ function createWindow () { // Emitted when the window is about to be closed. mainWindow.on('close', function (e) { - if (!shouldQuit) { + if (process.platform === 'darwin' && !shouldQuit) { e.preventDefault(); mainWindow.hide(); }