1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-26 17:50:34 +08:00

Merge pull request #10118 from peppy/fix-collection-delete-crash

Fix hard crash on deleting a collection with no collection selected
This commit is contained in:
Dan Balasescu
2020-09-10 20:23:21 +09:00
committed by GitHub
Unverified
+9 -1
View File
@@ -189,7 +189,15 @@ namespace osu.Game.Screens.Select
}
};
collectionDropdown.Current.ValueChanged += _ => updateCriteria();
collectionDropdown.Current.ValueChanged += val =>
{
if (val.NewValue == null)
// may be null briefly while menu is repopulated.
return;
updateCriteria();
};
searchTextBox.Current.ValueChanged += _ => updateCriteria();
updateCriteria();