Close all windows in AtomApplication.destroy

This commit is contained in:
Nathan Sobo
2016-08-11 14:31:36 -06:00
parent 6994060e72
commit f1295d39a8

View File

@@ -100,6 +100,8 @@ class AtomApplication
destroy: ->
@disposable.dispose()
for window in @windows
window.close()
openWithOptions: ({initialPaths, pathsToOpen, executedFrom, urlsToOpen, test, pidToKillWhenClosed, devMode, safeMode, newWindow, logFile, profileStartup, timeout, clearWindowState, addToLastWindow, env}) ->
if test