mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:42:54 +08:00
Only apply criteria if there are items populated in the carousel
This commit is contained in:
parent
33f8c8419a
commit
da0940ae0b
@ -284,7 +284,9 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
private void applyActiveCriteria(bool debounce, bool scroll)
|
||||
{
|
||||
Action perform = delegate
|
||||
if (root.Children?.Any() != true) return;
|
||||
|
||||
void perform()
|
||||
{
|
||||
FilterTask = null;
|
||||
|
||||
@ -292,7 +294,7 @@ namespace osu.Game.Screens.Select
|
||||
updateItems();
|
||||
|
||||
if (scroll) ScrollToSelected(false);
|
||||
};
|
||||
}
|
||||
|
||||
FilterTask?.Cancel();
|
||||
FilterTask = null;
|
||||
|
Loading…
Reference in New Issue
Block a user