Merge branch 'master' of github.com:Eugeny/tabby

This commit is contained in:
Eugene Pankov 2022-02-14 21:17:49 +01:00
commit c88b02fa91
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

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