fix(electron): remove platform check for hud overlay close event

This check causes the close button to stop working on Windows.
This commit is contained in:
LauZzL
2025-12-07 17:51:19 +08:00
parent f1f507e6e9
commit 8cbdcf2d7a
+1 -3
View File
@@ -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()