Add No Results node to Content Search if nothing found
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user