From e6c15ee10b6b81e364c210448a134ee60041f4be Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 7 Sep 2016 15:47:23 +0200 Subject: [PATCH] `onSaveWindowState` -> `onSaveWindowStateRequest` --- src/application-delegate.coffee | 2 +- src/atom-environment.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/application-delegate.coffee b/src/application-delegate.coffee index f2979ba0d..18fb59f54 100644 --- a/src/application-delegate.coffee +++ b/src/application-delegate.coffee @@ -244,7 +244,7 @@ class ApplicationDelegate new Disposable -> ipcRenderer.removeListener('context-command', outerCallback) - onSaveWindowState: (callback) -> + onSaveWindowStateRequest: (callback) -> outerCallback = (event, message) -> callback(event) diff --git a/src/atom-environment.coffee b/src/atom-environment.coffee index 977f9d70b..f84e90469 100644 --- a/src/atom-environment.coffee +++ b/src/atom-environment.coffee @@ -674,7 +674,7 @@ class AtomEnvironment extends Model @disposables.add(@applicationDelegate.onDidOpenLocations(@openLocations.bind(this))) @disposables.add(@applicationDelegate.onApplicationMenuCommand(@dispatchApplicationMenuCommand.bind(this))) @disposables.add(@applicationDelegate.onContextMenuCommand(@dispatchContextMenuCommand.bind(this))) - @disposables.add @applicationDelegate.onSaveWindowState => + @disposables.add @applicationDelegate.onSaveWindowStateRequest => callback = => @applicationDelegate.didSaveWindowState() @saveState({isUnloading: true}).catch(callback).then(callback)