mirror of
https://github.com/ppy/osu
synced 2024-12-15 11:25:29 +00:00
fixed itemUpdated()
This commit is contained in:
parent
7476cb3047
commit
f1894a8bac
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user