mirror of https://github.com/ppy/osu
Removed unnecessary SelectNext() call and change to dummy map when no items present
This commit is contained in:
parent
367090155c
commit
c737e5245e
|
@ -142,7 +142,6 @@ public void UpdateBeatmapSet(BeatmapSetInfo beatmapSet)
|
|||
if (newSet == null)
|
||||
{
|
||||
itemsCache.Invalidate();
|
||||
SelectNext();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -512,7 +511,7 @@ void performMove(float y, float? startY = null)
|
|||
currentY += DrawHeight / 2;
|
||||
scrollableContent.Height = currentY;
|
||||
|
||||
if (selectedBeatmapSet != null && selectedBeatmapSet.State.Value != CarouselItemState.Selected)
|
||||
if (!Items.Any() || selectedBeatmapSet != null && selectedBeatmapSet.State.Value != CarouselItemState.Selected)
|
||||
{
|
||||
selectedBeatmapSet = null;
|
||||
SelectionChanged?.Invoke(null);
|
||||
|
|
Loading…
Reference in New Issue