From 2633c2f735780bd9423328c4462600211c218af3 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 7 Jul 2016 16:29:58 -0700 Subject: [PATCH] Add was prefix to current launch settings --- atom/browser/api/atom_api_app.cc | 4 ++-- spec/api-app-spec.js | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/atom/browser/api/atom_api_app.cc b/atom/browser/api/atom_api_app.cc index b0a842d4ca18..9d799f115007 100644 --- a/atom/browser/api/atom_api_app.cc +++ b/atom/browser/api/atom_api_app.cc @@ -91,8 +91,8 @@ struct Converter { dict.Set("openAtLogin", val.open_at_login); dict.Set("openAsHidden", val.open_as_hidden); dict.Set("restoreState", val.restore_state); - dict.Set("openedAtLogin", val.opened_at_login); - dict.Set("openedAsHidden", val.opened_as_hidden); + dict.Set("wasOpenedAtLogin", val.opened_at_login); + dict.Set("wasOpenedAsHidden", val.opened_as_hidden); return dict.GetHandle(); } }; diff --git a/spec/api-app-spec.js b/spec/api-app-spec.js index de582358553d..8ceb44f19d33 100644 --- a/spec/api-app-spec.js +++ b/spec/api-app-spec.js @@ -315,8 +315,8 @@ describe('app module', function () { assert.deepEqual(app.getLoginItemSettings(), { openAtLogin: true, openAsHidden: false, - openedAtLogin: false, - openedAsHidden: false, + wasOpenedAtLogin: false, + wasOpenedAsHidden: false, restoreState: false }) @@ -324,8 +324,8 @@ describe('app module', function () { assert.deepEqual(app.getLoginItemSettings(), { openAtLogin: true, openAsHidden: true, - openedAtLogin: false, - openedAsHidden: false, + wasOpenedAtLogin: false, + wasOpenedAsHidden: false, restoreState: false }) @@ -333,8 +333,8 @@ describe('app module', function () { assert.deepEqual(app.getLoginItemSettings(), { openAtLogin: false, openAsHidden: false, - openedAtLogin: false, - openedAsHidden: false, + wasOpenedAtLogin: false, + wasOpenedAsHidden: false, restoreState: false }) })