Fix content view items refresh (eg. after delete) when using search field

This commit is contained in:
Wojtek Figat
2023-04-22 11:51:18 +02:00
parent 3e8a29cdd5
commit 97e2e9a61d
2 changed files with 5 additions and 1 deletions

View File

@@ -164,6 +164,7 @@ namespace FlaxEditor.Windows
// Check if clear filters
if (_itemsSearchBox.TextLength == 0 && !_viewDropdown.HasSelection)
{
_view.IsSearching = false;
RefreshView();
return;
}

View File

@@ -814,7 +814,10 @@ namespace FlaxEditor.Windows
/// </summary>
public void RefreshView()
{
RefreshView(SelectedNode);
if (_view.IsSearching)
UpdateItemsSearch();
else
RefreshView(SelectedNode);
}
/// <summary>