mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Don't save windows state when apm test finishes
This commit is contained in:
@@ -213,7 +213,7 @@ class AtomApplication
|
||||
@deleteSocketFile()
|
||||
|
||||
app.on 'will-exit', =>
|
||||
@saveState()
|
||||
@saveState() unless @windows.every (window) -> window.isSpec
|
||||
@killAllProcesses()
|
||||
@deleteSocketFile()
|
||||
|
||||
@@ -426,8 +426,8 @@ class AtomApplication
|
||||
saveState: ->
|
||||
states = []
|
||||
for window in @windows
|
||||
if loadSettings = window.getLoadSettings()
|
||||
unless loadSettings.isSpec
|
||||
unless window.isSpec
|
||||
if loadSettings = window.getLoadSettings()
|
||||
states.push(initialPaths: loadSettings.initialPaths)
|
||||
@storageFolder.store('application.json', states)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user