Limit hidden window behavior to osx

Only on osx is it customary to remain running in the background when the
window is closed.

// FREEBIE
This commit is contained in:
lilia
2017-05-04 22:59:24 -07:00
committed by Scott Nonnenberg
parent cfb1e62603
commit 2ccd8c21f3

View File

@@ -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();
}