diff --git a/osu-framework b/osu-framework index f4362fce5a..fdcd1c5b50 160000 --- a/osu-framework +++ b/osu-framework @@ -1 +1 @@ -Subproject commit f4362fce5a891e8b8dd84fadc0a9743a8c92e030 +Subproject commit fdcd1c5b5036c7cc1d75abb605e225e7411d5742 diff --git a/osu.Game/Graphics/UserInterface/OsuDropDownMenu.cs b/osu.Game/Graphics/UserInterface/OsuDropDownMenu.cs index 08a15110fa..8e1d8f7cf6 100644 --- a/osu.Game/Graphics/UserInterface/OsuDropDownMenu.cs +++ b/osu.Game/Graphics/UserInterface/OsuDropDownMenu.cs @@ -17,16 +17,8 @@ namespace osu.Game.Graphics.UserInterface { protected override DropDownHeader CreateHeader() => new OsuDropDownHeader(); - protected override IEnumerable> GetDropDownItems(IEnumerable values) - { - return values.Select(v => - { - var field = typeof(U).GetField(Enum.GetName(typeof(U), v)); - return new OsuDropDownMenuItem( - field.GetCustomAttribute()?.Description ?? field.Name, v); - }); - - } + protected override IEnumerable> GetDropDownItems(IEnumerable> values) + => values.Select(v => new OsuDropDownMenuItem(v.Key, v.Value)); public OsuDropDownMenu() {