Make it possible to reopen app after close to tray
This commit is contained in:
parent
91e1cc02ce
commit
816ba5d1d0
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ if (!app.requestSingleInstanceLock()) {
|
|||
app.on("second-instance", () => {
|
||||
if (mainWin) {
|
||||
if (mainWin.isMinimized()) mainWin.restore();
|
||||
if (!mainWin.isVisible()) mainWin.show();
|
||||
mainWin.focus();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue