1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 22:22:55 +08:00

Remove schedule in panel load

It was causing selection/deselection of all mods to work improperly if a
select/deselect all operation was requested before the panel was
scrolled into view.

In general the schedule was an over-optimisation - the game-global set
of available mods shouldn't be changing so often as to warrant such an
aggressive debounce.
This commit is contained in:
Bartłomiej Dach 2022-05-06 16:48:01 +02:00
parent e1953c484c
commit 9f96dd47d1
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -275,7 +275,7 @@ namespace osu.Game.Overlays.Mods
return; return;
localAvailableMods = newMods; localAvailableMods = newMods;
Scheduler.AddOnce(loadPanels); loadPanels();
} }
private CancellationTokenSource? cancellationTokenSource; private CancellationTokenSource? cancellationTokenSource;