Make OnUserChanged private

This commit is contained in:
Andrei Zavatski 2020-11-21 23:13:46 +03:00
parent dbfc839df3
commit fe4c622041
2 changed files with 7 additions and 11 deletions

View File

@ -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();

View File

@ -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;
}
}