diff options
author | sr55 <[email protected]> | 2017-03-22 20:37:18 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2017-03-22 20:37:18 +0000 |
commit | 328250950c54865529d94fdebbdde519a9a59b21 (patch) | |
tree | acdfae9169bff7f3e62df6a0fa9021f865b1936b /win | |
parent | 21aceef60d6dcdd5f523fbae21357c666b9d7f6d (diff) |
WinGui: Fix an issue with the EnumHelper that was causing some dropdowns not to render correctly.
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/HandBrakeWPF/Utilities/EnumHelper.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |