Readded the Option to hide the window on close for OSX

This commit is contained in:
Martin Gondermann
2016-07-03 16:12:04 +02:00
parent f35393d73e
commit 2b4ee5f0bc
5 changed files with 39 additions and 4 deletions

View File

@@ -391,8 +391,10 @@ app.on('ready', function() {
break;
case 'darwin':
mainWindow.hide();
app.dock.hide();
mainWindow.isHidden = true;
if (config.minimizeToTray) {
app.dock.hide();
mainWindow.isHidden = true;
}
break;
default:
}