1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 11:42:56 +08:00

Schedule UpdateFilter calls to avoid operations occuring while at a sub screen

This commit is contained in:
Dean Herbert 2020-12-24 16:20:38 +09:00
parent b29a5e2073
commit 5457e4598b

View File

@ -98,7 +98,9 @@ namespace osu.Game.Screens.Multi.Lounge.Components
scheduledFilterUpdate = Scheduler.AddDelayed(UpdateFilter, 200);
}
protected void UpdateFilter()
protected void UpdateFilter() => Scheduler.AddOnce(updateFilter);
private void updateFilter()
{
scheduledFilterUpdate?.Cancel();