mirror of
https://github.com/ppy/osu
synced 2025-01-18 20:10:49 +00:00
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 @@ namespace osu.Game.Screens.Select
|
||||
if (newSet == null)
|
||||
{
|
||||
itemsCache.Invalidate();
|
||||
SelectNext();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -512,7 +511,7 @@ namespace osu.Game.Screens.Select
|
||||
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
Block a user