mirror of
https://github.com/ppy/osu
synced 2024-12-26 00:32:52 +00:00
Fix UserProfile weirdness
This commit is contained in:
parent
99e34d8562
commit
d55c9c3cc2
@ -26,8 +26,11 @@ namespace osu.Game.Graphics.Containers
|
||||
{
|
||||
if (value == expandableHeader) return;
|
||||
|
||||
expandableHeader?.Expire();
|
||||
if (expandableHeader != null)
|
||||
RemoveInternal(expandableHeader);
|
||||
|
||||
expandableHeader = value;
|
||||
|
||||
if (value == null) return;
|
||||
|
||||
AddInternal(expandableHeader);
|
||||
|
@ -44,6 +44,9 @@ namespace osu.Game.Overlays
|
||||
if (user.Id == Header?.User.Value?.Id)
|
||||
return;
|
||||
|
||||
if (sectionsContainer != null)
|
||||
sectionsContainer.ExpandableHeader = null;
|
||||
|
||||
userReq?.Cancel();
|
||||
Clear();
|
||||
lastSection = null;
|
||||
|
Loading…
Reference in New Issue
Block a user