Skip to content

Commit

Permalink
WinGui: Fix an issue with the EnumHelper that was causing some dropdo…
Browse files Browse the repository at this point in the history
…wns not to render correctly.
  • Loading branch information
sr55 committed Mar 22, 2017
1 parent 21aceef commit 3282509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win/CS/HandBrakeWPF/Utilities/EnumHelper.cs
Expand Up @@ -53,7 +53,7 @@ public static string GetDescription(T value)
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();
}
Expand Down

0 comments on commit 3282509

Please sign in to comment.