mirror of
https://github.com/Eugeny/tabby
synced 2024-12-13 23:02:41 +00:00
Merge pull request #5743 from mwz/quit-app-cmd-q-mac-take2
This commit is contained in:
commit
0180fb0134
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue