mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-20 21:54:58 -04:00
Cleanup settings controllers
This commit is contained in:
@@ -137,6 +137,7 @@ namespace NzbDrone.Core.Configuration
|
||||
_cache.Clear();
|
||||
|
||||
var allWithDefaults = GetConfigDictionary();
|
||||
var hasUpdated = false;
|
||||
|
||||
foreach (var configValue in configValues)
|
||||
{
|
||||
@@ -155,11 +156,15 @@ namespace NzbDrone.Core.Configuration
|
||||
|
||||
if (!equal)
|
||||
{
|
||||
hasUpdated = true;
|
||||
SetValue(configValue.Key.FirstCharToUpper(), configValue.Value.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
_eventAggregator.PublishEvent(new ConfigFileSavedEvent());
|
||||
if (hasUpdated)
|
||||
{
|
||||
_eventAggregator.PublishEvent(new ConfigFileSavedEvent());
|
||||
}
|
||||
}
|
||||
|
||||
public string BindAddress
|
||||
|
||||
Reference in New Issue
Block a user