[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"
|
// 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);
|
||||||
|
|||||||
Reference in New Issue
Block a user