1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-09-20 01:18:39 +03:00

Fix app not quitting completely on Cmd+Q (Mac)

This commit is contained in:
Michael Wizner 2022-02-13 16:37:56 +00:00
parent f27f52dd72
commit 90f97d6669
No known key found for this signature in database
GPG Key ID: DDC00C09DF3570CD

View File

@ -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()