1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:02:53 +08:00

Move binding to LoadComplete

This commit is contained in:
StanR 2023-01-16 23:42:07 +03:00
parent c5d09c0e2c
commit 3f75506552

View File

@ -47,8 +47,11 @@ namespace osu.Game.Overlays.Profile.Header.Components
Font = OsuFont.GetFont(size: 20)
}
};
}
LevelInfo.BindValueChanged(level => updateLevel(level.NewValue));
protected override void LoadComplete()
{
LevelInfo.BindValueChanged(level => updateLevel(level.NewValue), true);
}
private void updateLevel(UserStatistics.LevelInfo? levelInfo)