mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
Fixed: Config file settings do not need to be case-sensitive
This commit is contained in:
parent
3b5e83670b
commit
2107635b7e
@ -255,7 +255,7 @@ public bool GetValueBoolean(string key, bool defaultValue, bool persist = true)
|
||||
|
||||
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…
Reference in New Issue
Block a user