mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Save state when reloading AtomWindow
Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
committed by
Nathan Sobo
parent
c2c7241eda
commit
833b3b0ab0
@@ -326,7 +326,6 @@ describe('AtomApplication', function () {
|
||||
})
|
||||
assert.deepEqual(directories, [{type: 'FakeRemoteDirectory', path: remotePath}])
|
||||
|
||||
await window.saveState()
|
||||
await window.reload()
|
||||
await focusWindow(window)
|
||||
directories = await evalInWebContents(window.browserWindow.webContents, function (sendBackToMainProcess) {
|
||||
|
||||
@@ -257,7 +257,7 @@ class AtomWindow
|
||||
reload: ->
|
||||
@applicationStartedPromise = new Promise (resolve) =>
|
||||
@browserWindow.once('window:application-started', resolve)
|
||||
@browserWindow.reload()
|
||||
@saveState().then => @browserWindow.reload()
|
||||
@applicationStartedPromise
|
||||
|
||||
toggleDevTools: -> @browserWindow.toggleDevTools()
|
||||
|
||||
Reference in New Issue
Block a user