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
No known key found for this signature in database
GPG key ID: A4931C09644C654B

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