From 9f9447d44149ff81e269ff5d2962589e8e57ec5a Mon Sep 17 00:00:00 2001 From: Dan Balasescu <1329837+smoogipoo@users.noreply.github.com> Date: Wed, 2 May 2018 14:02:49 +0800 Subject: [PATCH] Revert "Merge pull request #2470 from UselessToucan/main_track_muted_preview_overlay_closed" This reverts commit 67793845b092f67ccce29f8d99f87c8db33270a1. --- osu.Game/Overlays/UserProfileOverlay.cs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/osu.Game/Overlays/UserProfileOverlay.cs b/osu.Game/Overlays/UserProfileOverlay.cs index d8f858b95e..a4dd0c9ec3 100644 --- a/osu.Game/Overlays/UserProfileOverlay.cs +++ b/osu.Game/Overlays/UserProfileOverlay.cs @@ -71,7 +71,6 @@ namespace osu.Game.Overlays { base.PopOut(); FadeEdgeEffectTo(0, WaveContainer.DISAPPEAR_DURATION, Easing.Out); - cleanup(); } public void ShowUser(long userId) @@ -84,7 +83,9 @@ namespace osu.Game.Overlays public void ShowUser(User user, bool fetchOnline = true) { - cleanup(); + userReq?.Cancel(); + Clear(); + lastSection = null; sections = new ProfileSection[] { @@ -164,13 +165,6 @@ namespace osu.Game.Overlays sectionsContainer.ScrollToTop(); } - private void cleanup() - { - userReq?.Cancel(); - Clear(); - lastSection = null; - } - private void userLoadComplete(User user) { Header.User = user;