Removed unnecessary SelectNext() call and change to dummy map when no items present

This commit is contained in:
FreezyLemon 2017-12-26 01:50:05 +01:00
parent 367090155c
commit c737e5245e
1 changed files with 1 additions and 2 deletions

View File

@ -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);