1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00

Merge pull request #11281 from peppy/fix-ruleset-pollution

Schedule UpdateFilter calls to avoid operations occuring while at a sub screen
This commit is contained in:
Dean Herbert 2020-12-24 21:30:47 +09:00 committed by GitHub
commit 647cb8310a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();