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
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

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