mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 21:07:18 +09: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)
|
if (newSet == null)
|
||||||
{
|
{
|
||||||
itemsCache.Invalidate();
|
itemsCache.Invalidate();
|
||||||
SelectNext();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -512,7 +511,7 @@ namespace osu.Game.Screens.Select
|
|||||||
currentY += DrawHeight / 2;
|
currentY += DrawHeight / 2;
|
||||||
scrollableContent.Height = currentY;
|
scrollableContent.Height = currentY;
|
||||||
|
|
||||||
if (selectedBeatmapSet != null && selectedBeatmapSet.State.Value != CarouselItemState.Selected)
|
if (!Items.Any() || selectedBeatmapSet != null && selectedBeatmapSet.State.Value != CarouselItemState.Selected)
|
||||||
{
|
{
|
||||||
selectedBeatmapSet = null;
|
selectedBeatmapSet = null;
|
||||||
SelectionChanged?.Invoke(null);
|
SelectionChanged?.Invoke(null);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user