Add No Results node to Content Search if nothing found

This commit is contained in:
Wojtek Figat
2022-05-11 19:08:01 +02:00
parent 650d15a665
commit 5525527ecd

View File

@@ -411,6 +411,17 @@ namespace FlaxEngine.Windows.Search
try
{
SearchAsyncInner();
lock (_pendingResults)
{
if (!_token.IsCancellationRequested && _resultsTreeRoot.ChildrenCount == 0 && _pendingResults.Count == 0)
{
_pendingResults.Add(new SearchResultTreeNode
{
Text = "No results",
});
}
}
}
catch (Exception ex)
{