From 8fe36335ee45d75daddd1cbe1a3288ca3c217a41 Mon Sep 17 00:00:00 2001 From: Kylart Date: Thu, 7 Sep 2017 10:50:35 +0200 Subject: [PATCH] Fix open in browser window opening logic when app is on tray --- main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index e5c6cfd..c4640be 100644 --- a/main.js +++ b/main.js @@ -227,10 +227,13 @@ Electron.on('ready', () => { { label: 'New window', click: () => { - process.win === null && newWin() + process.win === null + ? newWin() + : process.win.show() }, accelerator: 'CommandOrControl+N' }, + {label: 'Show current window', click: () => { process.win.show() }}, {label: 'Close current window', role: 'close', accelerator: 'CommandOrControl+W'}, {type: 'separator'}, {label: 'Quit', role: 'quit', accelerator: 'CommandOrControl+Q'}