mirror of
https://github.com/ppy/osu
synced 2025-01-05 21:59:46 +00:00
Revert disposal on SectionsContainer
properties
This commit is contained in:
parent
8c50ccc48e
commit
778d767a12
@ -35,7 +35,7 @@ namespace osu.Game.Graphics.Containers
|
||||
if (value == expandableHeader) return;
|
||||
|
||||
if (expandableHeader != null)
|
||||
RemoveInternal(expandableHeader, true);
|
||||
RemoveInternal(expandableHeader, false);
|
||||
|
||||
expandableHeader = value;
|
||||
|
||||
@ -55,6 +55,7 @@ namespace osu.Game.Graphics.Containers
|
||||
|
||||
fixedHeader?.Expire();
|
||||
fixedHeader = value;
|
||||
|
||||
if (value == null) return;
|
||||
|
||||
AddInternal(fixedHeader);
|
||||
@ -70,8 +71,10 @@ namespace osu.Game.Graphics.Containers
|
||||
if (value == footer) return;
|
||||
|
||||
if (footer != null)
|
||||
scrollContainer.Remove(footer, true);
|
||||
scrollContainer.Remove(footer, false);
|
||||
|
||||
footer = value;
|
||||
|
||||
if (value == null) return;
|
||||
|
||||
footer.Anchor |= Anchor.y2;
|
||||
|
Loading…
Reference in New Issue
Block a user