diff --git a/src/ipc.ts b/src/ipc.ts index b84fb95..5e6e913 100644 --- a/src/ipc.ts +++ b/src/ipc.ts @@ -98,9 +98,8 @@ ipcMain.on("ipcCall", async function (_ev: IpcMainEvent, payload) { case "focusWindow": if (global.mainWindow.isMinimized()) { global.mainWindow.restore(); - } else if (!global.mainWindow.isVisible()) { - global.mainWindow.show(); } else { + global.mainWindow.show(); global.mainWindow.focus(); } break;