Cleanup - Use RemoveAllChildren() over DisposeAllChildren() (#39848)
* Content - change the (should-be-obsolete) DisposeAllChildren into the more robust RemoveAllChildren. * Remove duplicate calls. --------- Co-authored-by: ElectroJr <leonsfriedrich@gmail.com>
This commit is contained in:
@@ -67,8 +67,8 @@ public sealed partial class DockingScreen : BoxContainer
|
||||
{
|
||||
DockingControl.BuildDocks(shuttle);
|
||||
var currentDock = DockingControl.ViewedDock;
|
||||
// DockedWith.DisposeAllChildren();
|
||||
DockPorts.DisposeAllChildren();
|
||||
// DockedWith.RemoveAllChildren();
|
||||
DockPorts.RemoveAllChildren();
|
||||
_ourDockButtons.Clear();
|
||||
|
||||
if (shuttle == null)
|
||||
|
||||
Reference in New Issue
Block a user