Fix UserProfile weirdness

This commit is contained in:
Dean Herbert
2020-09-03 17:11:34 +09:00
parent 99e34d8562
commit d55c9c3cc2
2 changed files with 7 additions and 1 deletions

View File

@ -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);