From 816ba5d1d0a770ce9348f9e46509fa00b744d6bc Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 5 Apr 2023 04:25:17 +0200 Subject: [PATCH] Make it possible to reopen app after close to tray --- src/main/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/index.ts b/src/main/index.ts index ea41358..7454f4e 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -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(); } });