mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Don’t change key name in serialized application state
We changed it internally for clarity, but this is breaking compatibility with restoring state when upgrading from previous versions. Fixes #9690
This commit is contained in:
committed by
Max Brunsfeld
parent
57503e4294
commit
23102198ce
@@ -441,7 +441,7 @@ class AtomApplication
|
||||
states = []
|
||||
for window in @windows
|
||||
if not window.isSpec and window.projectDirectoryPaths?
|
||||
states.push(projectDirectoryPaths: window.projectDirectoryPaths)
|
||||
states.push(initialPaths: window.projectDirectoryPaths)
|
||||
if states.length > 0 or allowEmpty
|
||||
@storageFolder.store('application.json', states)
|
||||
|
||||
@@ -449,7 +449,7 @@ class AtomApplication
|
||||
if (states = @storageFolder.load('application.json'))?.length > 0
|
||||
for state in states
|
||||
@openWithOptions(_.extend(options, {
|
||||
pathsToOpen: state.projectDirectoryPaths
|
||||
pathsToOpen: state.initialPaths
|
||||
urlsToOpen: []
|
||||
devMode: @devMode
|
||||
safeMode: @safeMode
|
||||
|
||||
Reference in New Issue
Block a user