fix new ui not allowing script exports other than ida

This commit is contained in:
LukeFZ
2025-07-21 17:14:19 +02:00
parent 893d2c1300
commit a8a757f3f5

View File

@@ -13,7 +13,7 @@ public static class DictionaryExtensions
public static T GetAsEnumOrDefault<T>(this Dictionary<string, string> dict, string key, T defaultValue) public static T GetAsEnumOrDefault<T>(this Dictionary<string, string> dict, string key, T defaultValue)
where T : struct, Enum where T : struct, Enum
{ {
if (dict.TryGetValue(key, out var value) && Enum.TryParse<T>(value, out var enumResult)) if (dict.TryGetValue(key, out var value) && Enum.TryParse<T>(value, true, out var enumResult))
return enumResult; return enumResult;
return defaultValue; return defaultValue;