mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Rename UserProfileData
-related symbols
This commit is contained in:
@ -26,7 +26,7 @@ namespace osu.Game.Overlays.Profile.Header
|
||||
{
|
||||
private const float avatar_size = 110;
|
||||
|
||||
public readonly Bindable<UserProfileData?> UserProfile = new Bindable<UserProfileData?>();
|
||||
public readonly Bindable<UserProfileData?> UserProfileData = new Bindable<UserProfileData?>();
|
||||
|
||||
[Resolved]
|
||||
private IAPIProvider api { get; set; } = null!;
|
||||
@ -170,12 +170,12 @@ namespace osu.Game.Overlays.Profile.Header
|
||||
}
|
||||
};
|
||||
|
||||
UserProfile.BindValueChanged(user => updateUser(user.NewValue));
|
||||
UserProfileData.BindValueChanged(data => updateUser(data.NewValue));
|
||||
}
|
||||
|
||||
private void updateUser(UserProfileData? userProfile)
|
||||
private void updateUser(UserProfileData? data)
|
||||
{
|
||||
var user = userProfile?.User;
|
||||
var user = data?.User;
|
||||
|
||||
avatar.User = user;
|
||||
usernameText.Text = user?.Username ?? string.Empty;
|
||||
|
Reference in New Issue
Block a user