mirror of
https://github.com/ppy/osu
synced 2024-12-15 03:16:17 +00:00
Merge pull request #2481 from smoogipoo/revert-useroverlay-change
Revert breaking UserProfileOverlay change
This commit is contained in:
commit
036e62e2b1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user