Do not delay inital mod update by a frame

This commit is contained in:
Bartłomiej Dach 2022-02-28 21:46:58 +01:00
parent e8701f46f1
commit 899b95e61b
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -224,7 +224,8 @@ namespace osu.Game.Overlays.Mods
protected override void LoadComplete() protected override void LoadComplete()
{ {
base.LoadComplete(); base.LoadComplete();
availableMods.BindValueChanged(_ => Scheduler.AddOnce(updateMods), true); availableMods.BindValueChanged(_ => Scheduler.AddOnce(updateMods));
updateMods();
} }
private CancellationTokenSource? cancellationTokenSource; private CancellationTokenSource? cancellationTokenSource;