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

pull/5554/head
Bogdan 1 year ago committed by GitHub
parent 3b5e83670b
commit 2107635b7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -255,7 +255,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)

Loading…
Cancel
Save