Fix song select crashes due to attempting to clear selection after load has already begun

This commit is contained in:
Dean Herbert 2024-09-18 15:50:55 +09:00
parent aae98e6906
commit c192a6a1d5
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -1036,7 +1036,7 @@ private void updateYPositions()
itemsCache.Validate();
// update and let external consumers know about selection loss.
if (BeatmapSetsLoaded)
if (BeatmapSetsLoaded && AllowSelection)
{
bool selectionLost = selectedBeatmapSet != null && selectedBeatmapSet.State.Value != CarouselItemState.Selected;