From 12ff6906191046cdf0b3f0cad947a547a3d54542 Mon Sep 17 00:00:00 2001 From: Kendall Garner <17521368+kgarner7@users.noreply.github.com> Date: Wed, 18 Feb 2026 21:50:44 -0800 Subject: [PATCH] fix(window): recreate window on macos when closed but not quit --- src/main/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index 711d3e207..b6a500e57 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -390,8 +390,11 @@ const createTray = () => { }, { click: () => { - mainWindow?.show(); - createWinThumbarButtons(); + if (mainWindow === null) createWindow(false); + else { + mainWindow.show(); + createWinThumbarButtons(); + } }, label: 'Open main window', }, @@ -618,6 +621,7 @@ async function createWindow(first = true): Promise { mainWindow.on('closed', () => { ipcMain.removeHandler('window-clear-cache'); + ipcMain.removeHandler('app-check-for-updates'); mainWindow = null; });