1
0
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:
Andrei Zavatski
2020-11-21 23:13:46 +03:00
Unverified
parent dbfc839df3
commit fe4c622041
2 changed files with 7 additions and 11 deletions
@@ -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;
}
}