mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 19:43:22 +08:00
Use AddOnce everywhere to reduce potential call count
This commit is contained in:
parent
549e7520c5
commit
889a99c49c
@ -78,7 +78,7 @@ namespace osu.Game.Screens.OnlinePlay.Match
|
||||
managerUpdated = beatmapManager.ItemUpdated.GetBoundCopy();
|
||||
managerUpdated.BindValueChanged(beatmapUpdated);
|
||||
|
||||
UserMods.BindValueChanged(_ => UpdateMods());
|
||||
UserMods.BindValueChanged(_ => Scheduler.AddOnce(UpdateMods));
|
||||
}
|
||||
|
||||
public override void OnEntering(IScreen last)
|
||||
@ -97,7 +97,7 @@ namespace osu.Game.Screens.OnlinePlay.Match
|
||||
{
|
||||
base.OnResuming(last);
|
||||
beginHandlingTrack();
|
||||
UpdateMods();
|
||||
Scheduler.AddOnce(UpdateMods);
|
||||
}
|
||||
|
||||
public override bool OnExiting(IScreen next)
|
||||
|
Loading…
Reference in New Issue
Block a user