mirror of
https://github.com/ppy/osu.git
synced 2026-06-02 06:49:54 +08:00
Make OnUserChanged private
This commit is contained in:
@@ -74,7 +74,13 @@ namespace osu.Game.Overlays.Profile.Sections
|
||||
}
|
||||
};
|
||||
|
||||
protected override void OnUserChanged(ValueChangedEvent<User> e)
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
User.BindValueChanged(onUserChanged, true);
|
||||
}
|
||||
|
||||
private void onUserChanged(ValueChangedEvent<User> e)
|
||||
{
|
||||
loadCancellation?.Cancel();
|
||||
retrievalRequest?.Cancel();
|
||||
|
||||
@@ -43,19 +43,9 @@ namespace osu.Game.Overlays.Profile.Sections
|
||||
};
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
User.BindValueChanged(OnUserChanged, true);
|
||||
}
|
||||
|
||||
[NotNull]
|
||||
protected abstract Drawable CreateContent();
|
||||
|
||||
protected virtual void OnUserChanged(ValueChangedEvent<User> e)
|
||||
{
|
||||
}
|
||||
|
||||
protected void SetCount(int value) => header.Current.Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user