mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 02:18:01 +00:00
Fix app not quitting completely on Cmd+Q (Mac)
This commit is contained in:
@@ -93,6 +93,10 @@ export class Application {
|
||||
app.commandLine.appendSwitch(flag[0], flag[1])
|
||||
}
|
||||
|
||||
app.on('before-quit', () => {
|
||||
this.quitRequested = true
|
||||
})
|
||||
|
||||
app.on('window-all-closed', () => {
|
||||
if (this.quitRequested || process.platform !== 'darwin') {
|
||||
app.quit()
|
||||
|
Reference in New Issue
Block a user