mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Only apply criteria if there are items populated in the carousel
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user