Initialize the new flag and pendingOperations in clear()

This commit is contained in:
Ash Wilson
2017-09-12 14:38:49 -04:00
parent fa1ebd0529
commit 0c021f777e

View File

@@ -399,8 +399,6 @@ class Config
# Created during initialization, available as `atom.config`
constructor: ({@notificationManager, @enablePersistence}={}) ->
@settingsLoaded = false
@pendingOperations = []
@clear()
initialize: ({@configDirPath, @resourcePath, projectHomeSchema}) ->
@@ -420,9 +418,11 @@ class Config
@settings = {}
@scopedSettingsStore = new ScopedPropertyStore
@settingsLoaded = false
@savePending = false
@configFileHasErrors = false
@transactDepth = 0
@pendingOperations = []
@requestLoad = _.debounce =>
@loadUserConfig()