Fixed: Config file settings do not need to be case-sensitive

(cherry picked from commit 2107635b7e7e5392624f2957af7d7b88ba6be283)
This commit is contained in:
Bogdan 2023-04-11 21:52:25 +03:00 committed by Qstick
parent ed2d127240
commit 40b9e45034
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ namespace NzbDrone.Core.Configuration
public T GetValueEnum<T>(string key, T defaultValue, bool persist = true)
{
return (T)Enum.Parse(typeof(T), GetValue(key, defaultValue, persist));
return (T)Enum.Parse(typeof(T), GetValue(key, defaultValue, persist), true);
}
public string GetValue(string key, object defaultValue, bool persist = true)