Optimize CultureInfoEditor and TagEditor performance when searching entries by text

This commit is contained in:
Wojtek Figat
2023-09-11 15:07:37 +02:00
parent 829d3b3642
commit 748ff3b8a5
2 changed files with 4 additions and 4 deletions

View File

@@ -123,9 +123,9 @@ namespace FlaxEditor.CustomEditors.Editors
{
if (tree.IsLayoutLocked)
return;
root.LockChildrenRecursive();
tree.LockChildrenRecursive();
Utilities.Utils.UpdateSearchPopupFilter(root, searchBox.Text);
root.UnlockChildrenRecursive();
tree.UnlockChildrenRecursive();
menu.PerformLayout();
};
root.ExpandAll(true);

View File

@@ -593,9 +593,9 @@ namespace FlaxEditor.CustomEditors.Editors
{
if (tree.IsLayoutLocked)
return;
root.LockChildrenRecursive();
tree.LockChildrenRecursive();
Utilities.Utils.UpdateSearchPopupFilter(root, searchBox.Text);
root.UnlockChildrenRecursive();
tree.UnlockChildrenRecursive();
menu.PerformLayout();
};