From 23102198ced59593cab282f5a1dd45850692b9bf Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 18 Nov 2015 20:58:19 -0800 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20change=20key=20name=20in=20seri?= =?UTF-8?q?alized=20application=20state?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We changed it internally for clarity, but this is breaking compatibility with restoring state when upgrading from previous versions. Fixes #9690 --- src/browser/atom-application.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/browser/atom-application.coffee b/src/browser/atom-application.coffee index f825899e3..7f182b584 100644 --- a/src/browser/atom-application.coffee +++ b/src/browser/atom-application.coffee @@ -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