diff --git a/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.cs b/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.cs index b9db4c4..e3414fd 100644 --- a/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.cs +++ b/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.cs @@ -49,7 +49,7 @@ public partial class ThreadsVariablesSubTab : Control { var firstChild = item.GetFirstChild(); Guard.Against.Null(firstChild); - item.RemoveChild(firstChild); + firstChild.Visible = false; // Set to visible false rather than RemoveChild, so we don't have to Free foreach (var variable in variables) { AddVariableToTreeItem(item, variable);