mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 18:27:26 +08:00
Move to LoadComplete()
better
This commit is contained in:
parent
3f75506552
commit
f79037cefb
@ -87,8 +87,13 @@ namespace osu.Game.Overlays.Profile.Header
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
User.BindValueChanged(user => updateDisplay(user.NewValue?.User));
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
User.BindValueChanged(user => updateDisplay(user.NewValue?.User), true);
|
||||
}
|
||||
|
||||
private void updateDisplay(APIUser? user)
|
||||
|
@ -51,6 +51,8 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
LevelInfo.BindValueChanged(level => updateLevel(level.NewValue), true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user