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:
Nathan Sobo
2015-11-18 20:58:19 -08:00
committed by Max Brunsfeld
parent 57503e4294
commit 23102198ce

View File

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