From 8cbdcf2d7a518412d0427b35f15c3a76998f8977 Mon Sep 17 00:00:00 2001 From: LauZzL Date: Sun, 7 Dec 2025 17:51:19 +0800 Subject: [PATCH] fix(electron): remove platform check for hud overlay close event This check causes the close button to stop working on Windows. --- electron/main.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/electron/main.ts b/electron/main.ts index 0cd4cbd..f68e5d5 100644 --- a/electron/main.ts +++ b/electron/main.ts @@ -111,9 +111,7 @@ app.whenReady().then(async () => { // Listen for HUD overlay quit event (macOS only) const { ipcMain } = await import('electron'); ipcMain.on('hud-overlay-close', () => { - if (process.platform === 'darwin') { - app.quit(); - } + app.quit(); }); // Ensure recordings directory exists await ensureRecordingsDir()