fix(desktop): force app exit on windows window close

This commit is contained in:
2026-02-09 00:40:01 +08:00
parent 26b74b25f2
commit 9aea89e16d

View File

@@ -145,6 +145,10 @@ app.whenReady().then(createWindow)
app.on('window-all-closed', () => { app.on('window-all-closed', () => {
if (process.platform !== 'darwin') { if (process.platform !== 'darwin') {
stopServerProcess() stopServerProcess()
if (process.platform === 'win32') {
app.exit(0)
return
}
app.quit() app.quit()
} }
}) })