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:
parent
c5d09c0e2c
commit
3f75506552
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user