From 9aea89e16def147523e5f5c8d1b227a90b5843fa Mon Sep 17 00:00:00 2001 From: imbytecat Date: Mon, 9 Feb 2026 00:40:01 +0800 Subject: [PATCH] fix(desktop): force app exit on windows window close --- apps/desktop/src/main/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/desktop/src/main/index.ts b/apps/desktop/src/main/index.ts index a4bf627..0e8a056 100644 --- a/apps/desktop/src/main/index.ts +++ b/apps/desktop/src/main/index.ts @@ -145,6 +145,10 @@ app.whenReady().then(createWindow) app.on('window-all-closed', () => { if (process.platform !== 'darwin') { stopServerProcess() + if (process.platform === 'win32') { + app.exit(0) + return + } app.quit() } })