diff --git a/osu.Game/Overlays/Profile/ProfileHeader.cs b/osu.Game/Overlays/Profile/ProfileHeader.cs index 3fa6243df4..17493d5078 100644 --- a/osu.Game/Overlays/Profile/ProfileHeader.cs +++ b/osu.Game/Overlays/Profile/ProfileHeader.cs @@ -296,7 +296,23 @@ namespace osu.Game.Overlays.Profile levelBadge.Texture = textures.Get(@"Profile/levelbadge"); } - public void FillFullData(User user) + private User user; + + public User User + { + get + { + return user; + } + + set + { + user = value; + loadUser(); + } + } + + private void loadUser() { coverContainer.Add(new AsyncLoadWrapper(new UserCoverBackground(user) { diff --git a/osu.Game/Overlays/UserProfileOverlay.cs b/osu.Game/Overlays/UserProfileOverlay.cs index 30cd061674..ff8b2e8d8d 100644 --- a/osu.Game/Overlays/UserProfileOverlay.cs +++ b/osu.Game/Overlays/UserProfileOverlay.cs @@ -167,7 +167,7 @@ namespace osu.Game.Overlays private void fillData(User user) { - header.FillFullData(user); + header.User = user; for (int i = 0; i < user.ProfileOrder.Length; i++) {