Functions are more useful if you call them

This commit is contained in:
Ash Wilson
2017-09-12 11:30:07 -04:00
parent 7737aec3ae
commit 19500d1b40

View File

@@ -702,7 +702,8 @@ class Config
setValueAtKeyPath(settings, keyPath, undefined)
settings = withoutEmptyObjects(settings)
@set(null, settings, {scopeSelector, source, priority: @priorityForSource(source)}) if settings?
@requestSave() if source is @getUserConfigPath and not @configFileHasErrors and @settingsLoaded
if source is @getUserConfigPath() and not @configFileHasErrors and @settingsLoaded
@requestSave()
else
@scopedSettingsStore.removePropertiesForSourceAndSelector(source, scopeSelector)
@emitChangeEvent()