1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:52:53 +08:00

Move binding to LoadComplete()

This commit is contained in:
Bartłomiej Dach 2022-12-30 21:08:48 +01:00
parent 6ed474d4fb
commit 7580ab78be
No known key found for this signature in database

View File

@ -15,9 +15,13 @@ namespace osu.Game.Screens.Play.HUD
[SettingSource("Accuracy display mode", "Which accuracy mode should be displayed.")]
public Bindable<AccuracyDisplayMode> AccuracyDisplay { get; } = new Bindable<AccuracyDisplayMode>();
[BackgroundDependencyLoader]
private void load(ScoreProcessor scoreProcessor)
[Resolved]
private ScoreProcessor scoreProcessor { get; set; } = null!;
protected override void LoadComplete()
{
base.LoadComplete();
AccuracyDisplay.BindValueChanged(mod =>
{
Current.UnbindBindings();