mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 19:22:54 +08:00
Cleanup UserProfileOverlay during PopOut
This commit is contained in:
parent
306f05b7bd
commit
8de05450c4
@ -71,6 +71,7 @@ namespace osu.Game.Overlays
|
||||
{
|
||||
base.PopOut();
|
||||
FadeEdgeEffectTo(0, WaveContainer.DISAPPEAR_DURATION, Easing.Out);
|
||||
cleanup();
|
||||
}
|
||||
|
||||
public void ShowUser(long userId)
|
||||
@ -83,9 +84,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
public void ShowUser(User user, bool fetchOnline = true)
|
||||
{
|
||||
userReq?.Cancel();
|
||||
Clear();
|
||||
lastSection = null;
|
||||
cleanup();
|
||||
|
||||
sections = new ProfileSection[]
|
||||
{
|
||||
@ -165,6 +164,13 @@ namespace osu.Game.Overlays
|
||||
sectionsContainer.ScrollToTop();
|
||||
}
|
||||
|
||||
private void cleanup()
|
||||
{
|
||||
userReq?.Cancel();
|
||||
Clear();
|
||||
lastSection = null;
|
||||
}
|
||||
|
||||
private void userLoadComplete(User user)
|
||||
{
|
||||
Header.User = user;
|
||||
|
Loading…
Reference in New Issue
Block a user