[fix] goose not quitting app completely (#2950)

This commit is contained in:
Zane
2025-06-16 15:38:40 -07:00
committed by GitHub
parent e3358840c3
commit 2f3ac32766
+4 -2
View File
@@ -1811,8 +1811,10 @@ app.on('before-quit', async (event) => {
// User clicked "Quit" // User clicked "Quit"
// Set a flag to avoid showing the dialog again // Set a flag to avoid showing the dialog again
app.removeAllListeners('before-quit'); app.removeAllListeners('before-quit');
// Actually quit the app // Force quit the app
app.quit(); process.nextTick(() => {
app.exit(0);
});
} }
} catch (error) { } catch (error) {
console.error('Error showing quit dialog:', error); console.error('Error showing quit dialog:', error);