Close browser after last window exits on windows

This commit is contained in:
Matt Colyer 2013-10-31 11:47:52 -07:00
parent a57f1e4727
commit b419cdf193

View File

@ -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.