mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 13:32:54 +08:00
Fix one more missed method with incorrect terminology
This commit is contained in:
parent
a05d7f4d8c
commit
3cfe624af1
@ -121,7 +121,7 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
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;
|
||||
|
||||
|
@ -57,16 +57,16 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
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)
|
||||
AddItem(i);
|
||||
|
||||
addingChildren = false;
|
||||
addingItems = false;
|
||||
|
||||
attemptSelection();
|
||||
}
|
||||
@ -74,7 +74,7 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
public override void AddItem(CarouselItem i)
|
||||
{
|
||||
base.AddItem(i);
|
||||
if (!addingChildren)
|
||||
if (!addingItems)
|
||||
attemptSelection();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user