[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

View File

@@ -1811,8 +1811,10 @@ app.on('before-quit', async (event) => {
// User clicked "Quit"
// Set a flag to avoid showing the dialog again
app.removeAllListeners('before-quit');
// Actually quit the app
app.quit();
// Force quit the app
process.nextTick(() => {
app.exit(0);
});
}
} catch (error) {
console.error('Error showing quit dialog:', error);