mirror of
https://github.com/ppy/osu
synced 2024-12-26 08:53:10 +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;
|
if (value == expandableHeader) return;
|
||||||
|
|
||||||
expandableHeader?.Expire();
|
if (expandableHeader != null)
|
||||||
|
RemoveInternal(expandableHeader);
|
||||||
|
|
||||||
expandableHeader = value;
|
expandableHeader = value;
|
||||||
|
|
||||||
if (value == null) return;
|
if (value == null) return;
|
||||||
|
|
||||||
AddInternal(expandableHeader);
|
AddInternal(expandableHeader);
|
||||||
|
@ -44,6 +44,9 @@ namespace osu.Game.Overlays
|
|||||||
if (user.Id == Header?.User.Value?.Id)
|
if (user.Id == Header?.User.Value?.Id)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (sectionsContainer != null)
|
||||||
|
sectionsContainer.ExpandableHeader = null;
|
||||||
|
|
||||||
userReq?.Cancel();
|
userReq?.Cancel();
|
||||||
Clear();
|
Clear();
|
||||||
lastSection = null;
|
lastSection = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user