mirror of
https://github.com/ppy/osu
synced 2025-01-20 21:10:49 +00:00
Make OnUserChanged private
This commit is contained in:
parent
dbfc839df3
commit
fe4c622041
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user