Fix open in browser window opening logic when app is on tray

This commit is contained in:
Kylart 2017-09-07 10:50:35 +02:00
parent 65e3a4d000
commit 8fe36335ee
1 changed files with 4 additions and 1 deletions

View File

@ -227,10 +227,13 @@ Electron.on('ready', () => {
{ {
label: 'New window', label: 'New window',
click: () => { click: () => {
process.win === null && newWin() process.win === null
? newWin()
: process.win.show()
}, },
accelerator: 'CommandOrControl+N' accelerator: 'CommandOrControl+N'
}, },
{label: 'Show current window', click: () => { process.win.show() }},
{label: 'Close current window', role: 'close', accelerator: 'CommandOrControl+W'}, {label: 'Close current window', role: 'close', accelerator: 'CommandOrControl+W'},
{type: 'separator'}, {type: 'separator'},
{label: 'Quit', role: 'quit', accelerator: 'CommandOrControl+Q'} {label: 'Quit', role: 'quit', accelerator: 'CommandOrControl+Q'}