1
0
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:
Dean Herbert 2017-12-16 23:55:55 +09:00
parent 33f8c8419a
commit da0940ae0b

View File

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