Make it possible to reopen app after close to tray
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user