mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 05:47:22 -04:00
Fixed: Support the old broken functionality in GetValueEnum
(cherry picked from commit 2c4e1be12ad5e3b8362f83b8185c143f8e66062b) Fixes #1602
This commit is contained in:
parent
ea24a81ef7
commit
065fbb30bf
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,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…
Add table
Add a link
Reference in a new issue