Optimize CultureInfoEditor and TagEditor performance when searching entries by text
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user