mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 08:13:10 +08:00
Fix hard crash on deleting a collection with no collection selected
This commit is contained in:
parent
23b51e8f7f
commit
18d96738a1
@ -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();
|
searchTextBox.Current.ValueChanged += _ => updateCriteria();
|
||||||
|
|
||||||
updateCriteria();
|
updateCriteria();
|
||||||
|
Loading…
Reference in New Issue
Block a user