onSaveWindowState -> onSaveWindowStateRequest

This commit is contained in:
Antonio Scandurra
2016-09-07 15:47:23 +02:00
parent 34a99f9c82
commit e6c15ee10b
2 changed files with 2 additions and 2 deletions

View File

@@ -244,7 +244,7 @@ class ApplicationDelegate
new Disposable ->
ipcRenderer.removeListener('context-command', outerCallback)
onSaveWindowState: (callback) ->
onSaveWindowStateRequest: (callback) ->
outerCallback = (event, message) ->
callback(event)

View File

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