Merge pull request #179 from magicmonty/HideWindowOnMinimize

Hide window to system tray on minimize/close in Windows/OSX
This commit is contained in:
Yuya Ochiai
2016-07-04 22:56:21 +09:00
committed by GitHub
7 changed files with 128 additions and 2 deletions

View File

@@ -11,6 +11,12 @@ function createDefault(mainWindow) {
label: `Open ${app.getName()}`,
click: () => {
mainWindow.show();
mainWindow.isHidden = false;
if (process.platform === 'darwin') {
app.dock.show();
mainWindow.focus();
}
}
}, {
type: 'separator'