Default close behavior on OS X

This commit is contained in:
Scott E. Graves
2018-12-12 22:00:06 -06:00
parent b4f1158bba
commit e825beb665

View File

@@ -175,19 +175,7 @@ if (!instanceLock) {
app.on('ready', createWindow);
app.on('window-all-closed', () => {
// On OS X it is common for applications and their menu bar
// to stay active until the user quits explicitly with Cmd + Q
if (process.platform !== 'darwin') {
closeApplication();
}
});
app.on('activate', () => {
// On OS X it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (mainWindow === null) {
createWindow()
}
});
}