1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 16:32:54 +08:00

Fix one more missed method with incorrect terminology

This commit is contained in:
Dean Herbert 2022-07-21 16:16:39 +09:00
parent a05d7f4d8c
commit 3cfe624af1
2 changed files with 6 additions and 6 deletions

View File

@ -121,7 +121,7 @@ namespace osu.Game.Screens.Select
{ {
CarouselRoot newRoot = new CarouselRoot(this); CarouselRoot newRoot = new CarouselRoot(this);
newRoot.AddChildren(beatmapSets.Select(s => createCarouselSet(s.Detach())).Where(g => g != null)); newRoot.AddItems(beatmapSets.Select(s => createCarouselSet(s.Detach())).Where(g => g != null));
root = newRoot; root = newRoot;

View File

@ -57,16 +57,16 @@ namespace osu.Game.Screens.Select.Carousel
updateSelectedIndex(); updateSelectedIndex();
} }
private bool addingChildren; private bool addingItems;
public void AddChildren(IEnumerable<CarouselItem> items) public void AddItems(IEnumerable<CarouselItem> items)
{ {
addingChildren = true; addingItems = true;
foreach (var i in items) foreach (var i in items)
AddItem(i); AddItem(i);
addingChildren = false; addingItems = false;
attemptSelection(); attemptSelection();
} }
@ -74,7 +74,7 @@ namespace osu.Game.Screens.Select.Carousel
public override void AddItem(CarouselItem i) public override void AddItem(CarouselItem i)
{ {
base.AddItem(i); base.AddItem(i);
if (!addingChildren) if (!addingItems)
attemptSelection(); attemptSelection();
} }