From ecc906a754d62ec503015e6663aa36201fab4057 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 11 Apr 2023 21:52:25 +0300 Subject: [PATCH] Fixed: Config file settings do not need to be case-sensitive (cherry picked from commit 2107635b7e7e5392624f2957af7d7b88ba6be283) --- src/NzbDrone.Core/Configuration/ConfigFileProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs b/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs index 1e8c112b8..8dd50ed1c 100644 --- a/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs +++ b/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs @@ -254,7 +254,7 @@ public bool GetValueBoolean(string key, bool defaultValue, bool persist = true) public T GetValueEnum(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)