From 1c1d2fd96f39806fef1a61cc1cf114c88f0bffff Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Mon, 29 Apr 2024 19:38:36 -0500 Subject: [PATCH] Fix still showing some control transform properties in wrong spot. --- Source/Editor/CustomEditors/Dedicated/UIControlEditor.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Editor/CustomEditors/Dedicated/UIControlEditor.cs b/Source/Editor/CustomEditors/Dedicated/UIControlEditor.cs index 9deb685a1..5db974240 100644 --- a/Source/Editor/CustomEditors/Dedicated/UIControlEditor.cs +++ b/Source/Editor/CustomEditors/Dedicated/UIControlEditor.cs @@ -456,9 +456,10 @@ namespace FlaxEditor.CustomEditors.Dedicated for (int i = 0; i < layout.Children.Count; i++) { - if (layout.Children[i] is GroupElement group && group.Panel.HeaderText == "Transform") + if (layout.Children[i] is GroupElement group && group.Panel.HeaderText.Equals("Transform", StringComparison.Ordinal)) { layout.Children.Remove(group); + layout.ContainerControl.Children.Remove(group.Panel); break; } } @@ -489,7 +490,7 @@ namespace FlaxEditor.CustomEditors.Dedicated // Get position of general tab for (int i = 0; i < l.Children.Count; i++) { - if (l.Children[i] is GroupElement g && g.Panel.HeaderText == "General" && i + 1 <= l.Children.Count) + if (l.Children[i] is GroupElement g && g.Panel.HeaderText.Equals("General", StringComparison.Ordinal) && i + 1 <= l.Children.Count) { Presenter.ContainerControl.ChangeChildIndex(transformGroup.Control, i + 1); break;