From 328250950c54865529d94fdebbdde519a9a59b21 Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 22 Mar 2017 20:37:18 +0000 Subject: [PATCH] WinGui: Fix an issue with the EnumHelper that was causing some dropdowns not to render correctly. --- win/CS/HandBrakeWPF/Utilities/EnumHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/CS/HandBrakeWPF/Utilities/EnumHelper.cs b/win/CS/HandBrakeWPF/Utilities/EnumHelper.cs index a39713862..33469f7ba 100644 --- a/win/CS/HandBrakeWPF/Utilities/EnumHelper.cs +++ b/win/CS/HandBrakeWPF/Utilities/EnumHelper.cs @@ -53,7 +53,7 @@ namespace HandBrakeWPF.Utilities public static string GetDisplay(T value) { FieldInfo fieldInfo = value.GetType().GetField(value.ToString()); - ShortName[] attributes = (ShortName[])fieldInfo.GetCustomAttributes(typeof(ShortName), false); + DisplayName[] attributes = (DisplayName[])fieldInfo.GetCustomAttributes(typeof(DisplayName), false); return (attributes.Length > 0) ? attributes[0].Name : value.ToString(); } -- 2.40.0