Make it possible to reopen app after close to tray

This commit is contained in:
Vendicated
2023-04-05 04:25:17 +02:00
parent 91e1cc02ce
commit 816ba5d1d0

View File

@@ -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();
}
});