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:
parent
cfb1e62603
commit
2ccd8c21f3
1 changed files with 1 additions and 1 deletions
2
main.js
2
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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue