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