1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 02:42:54 +08:00

Move to LoadComplete() better

This commit is contained in:
Bartłomiej Dach 2023-01-16 21:47:31 +01:00
parent 3f75506552
commit f79037cefb
No known key found for this signature in database
2 changed files with 8 additions and 1 deletions

View File

@ -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) private void updateDisplay(APIUser? user)

View File

@ -51,6 +51,8 @@ namespace osu.Game.Overlays.Profile.Header.Components
protected override void LoadComplete() protected override void LoadComplete()
{ {
base.LoadComplete();
LevelInfo.BindValueChanged(level => updateLevel(level.NewValue), true); LevelInfo.BindValueChanged(level => updateLevel(level.NewValue), true);
} }