mirror of
https://github.com/aljazceru/goose.git
synced 2026-02-21 22:44:24 +01:00
[fix] goose not quitting app completely (#2950)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user