1
0
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:
Mark McDowall
2026-02-16 13:37:59 -08:00
parent 33fb0a4e88
commit ac1c74105f
7 changed files with 55 additions and 71 deletions
@@ -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