From 19500d1b4087a484387577e046522d8f522236b0 Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Tue, 12 Sep 2017 11:30:07 -0400 Subject: [PATCH] Functions are more useful if you call them --- src/config.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.coffee b/src/config.coffee index 4fb1c0e20..2180bcc62 100644 --- a/src/config.coffee +++ b/src/config.coffee @@ -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()