mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Close browser after last window exits on windows
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user