mirror of
https://github.com/Readarr/Readarr
synced 2025-12-08 17:33:52 +01:00
Fixed: Config file settings do not need to be case-sensitive
(cherry picked from commit 2107635b7e7e5392624f2957af7d7b88ba6be283) Closes #2351
This commit is contained in:
parent
37a3799c66
commit
8de7f48b80
1 changed files with 1 additions and 1 deletions
|
|
@ -256,7 +256,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 a new issue