Limit hidden window behavior to osx

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

// FREEBIE
pull/749/head
lilia 8 years ago committed by Scott Nonnenberg
parent cfb1e62603
commit 2ccd8c21f3
No known key found for this signature in database
GPG Key ID: A4931C09644C654B

@ -130,7 +130,7 @@ function createWindow () {
// Emitted when the window is about to be closed. // Emitted when the window is about to be closed.
mainWindow.on('close', function (e) { mainWindow.on('close', function (e) {
if (!shouldQuit) { if (process.platform === 'darwin' && !shouldQuit) {
e.preventDefault(); e.preventDefault();
mainWindow.hide(); mainWindow.hide();
} }

Loading…
Cancel
Save