mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 19:32:55 +08:00
Revert "Merge pull request #2470 from UselessToucan/main_track_muted_preview_overlay_closed"
This reverts commit 67793845b0
.
This commit is contained in:
parent
084504134e
commit
9f9447d441
@ -71,7 +71,6 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
base.PopOut();
|
base.PopOut();
|
||||||
FadeEdgeEffectTo(0, WaveContainer.DISAPPEAR_DURATION, Easing.Out);
|
FadeEdgeEffectTo(0, WaveContainer.DISAPPEAR_DURATION, Easing.Out);
|
||||||
cleanup();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ShowUser(long userId)
|
public void ShowUser(long userId)
|
||||||
@ -84,7 +83,9 @@ namespace osu.Game.Overlays
|
|||||||
|
|
||||||
public void ShowUser(User user, bool fetchOnline = true)
|
public void ShowUser(User user, bool fetchOnline = true)
|
||||||
{
|
{
|
||||||
cleanup();
|
userReq?.Cancel();
|
||||||
|
Clear();
|
||||||
|
lastSection = null;
|
||||||
|
|
||||||
sections = new ProfileSection[]
|
sections = new ProfileSection[]
|
||||||
{
|
{
|
||||||
@ -164,13 +165,6 @@ namespace osu.Game.Overlays
|
|||||||
sectionsContainer.ScrollToTop();
|
sectionsContainer.ScrollToTop();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void cleanup()
|
|
||||||
{
|
|
||||||
userReq?.Cancel();
|
|
||||||
Clear();
|
|
||||||
lastSection = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void userLoadComplete(User user)
|
private void userLoadComplete(User user)
|
||||||
{
|
{
|
||||||
Header.User = user;
|
Header.User = user;
|
||||||
|
Loading…
Reference in New Issue
Block a user