mirror of https://github.com/Kylart/KawAnime.git
Fix open in browser window opening logic when app is on tray
This commit is contained in:
parent
65e3a4d000
commit
8fe36335ee
5
main.js
5
main.js
|
@ -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'}
|
||||||
|
|
Loading…
Reference in New Issue