mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Open window if Atom was previously quit w/ no open windows
This commit is contained in:
@@ -431,7 +431,7 @@ class AtomApplication
|
||||
@storageFolder.store('application.json', states)
|
||||
|
||||
loadState: ->
|
||||
if states = @storageFolder.load('application.json')
|
||||
if (states = @storageFolder.load('application.json'))?.length > 0
|
||||
for state in states
|
||||
@openWithOptions({
|
||||
pathsToOpen: state.initialPaths
|
||||
@@ -440,6 +440,9 @@ class AtomApplication
|
||||
safeMode: state.safeMode
|
||||
apiPreviewMode: state.apiPreviewMode
|
||||
})
|
||||
true
|
||||
else
|
||||
false
|
||||
|
||||
# Open an atom:// url.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user