You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Add a message if no items match the search in debugger
#jira UE-138973 #rb phillip.kavan #preflight 61e720e0b56c33b8ecf4a0d2 #ROBOMERGE-AUTHOR: benjamin.fox #ROBOMERGE-SOURCE: CL 18646837 in //UE5/Release-5.0/... via CL 18646881 via CL 18646912 #ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v900-18638592) [CL 18648365 by benjamin fox in ue5-main branch]
This commit is contained in:
@@ -2968,6 +2968,7 @@ void SKismetDebugTreeView::Construct(const FArguments& InArgs)
|
||||
bFilteredItemsDirty = false;
|
||||
bInDebuggerTab = InArgs._InDebuggerTab;
|
||||
SearchString = MakeShared<FString>();
|
||||
SearchMessageItem = MakeMessageItem(LOCTEXT("NoItemsMatchSearch", "No entries match the search text").ToString());
|
||||
|
||||
ChildSlot
|
||||
[
|
||||
@@ -3080,6 +3081,11 @@ void SKismetDebugTreeView::UpdateFilteredItems()
|
||||
}
|
||||
}
|
||||
|
||||
if (FilteredTreeRoots.IsEmpty())
|
||||
{
|
||||
FilteredTreeRoots.Add(SearchMessageItem);
|
||||
}
|
||||
|
||||
TreeView->RequestTreeRefresh();
|
||||
}
|
||||
|
||||
|
||||
@@ -222,6 +222,9 @@ private:
|
||||
|
||||
bool bFilteredItemsDirty;
|
||||
|
||||
/** message to display when no entries in the tree match the search text */
|
||||
FDebugTreeItemPtr SearchMessageItem;
|
||||
|
||||
/** whether this tree is held within the blueprint debugger tab, used to hide context menu options */
|
||||
bool bInDebuggerTab;
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user