mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 16:08:24 +03:00
Close browser after last window exits on windows
This commit is contained in:
parent
a57f1e4727
commit
b419cdf193
@ -146,6 +146,9 @@ class AtomApplication
|
||||
else
|
||||
@openPath(pathToOpen: "atom://config")
|
||||
|
||||
app.on 'window-all-closed', ->
|
||||
app.quit() if process.platform is 'win32'
|
||||
|
||||
app.on 'will-quit', =>
|
||||
fs.unlinkSync socketPath if fs.existsSync(socketPath) # Clean the socket file when quit normally.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user