fixed itemUpdated()

This commit is contained in:
rednir 2021-01-19 12:17:56 +00:00
parent 7476cb3047
commit f1894a8bac

View File

@ -116,8 +116,7 @@ namespace osu.Game.Overlays.Settings.Sections
{
if (weakItem.NewValue.TryGetTarget(out var item))
{
List<SkinInfo> newDropdownItems = skinDropdown.Items.ToList();
newDropdownItems.Add(item);
List<SkinInfo> newDropdownItems = skinDropdown.Items.Where(i => !i.Equals(item)).Append(item).ToList();
newDropdownItems = sortList(newDropdownItems);
Schedule(() => skinDropdown.Items = newDropdownItems.ToArray());
}