Skip to content

Commit 03cacc0

Browse files
committed
debug_ui: Show all objects when not searching
When not searching, show all objects irrespectively of their name or whether they have a name at all.
1 parent 950f3fe commit 03cacc0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/debug_ui/display_object.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1326,6 +1326,10 @@ impl DisplayObjectWindow {
13261326
}
13271327

13281328
fn matches_search(object: DisplayObject, search: &WStr) -> bool {
1329+
if search.is_empty() {
1330+
return true;
1331+
}
1332+
13291333
if object
13301334
.name()
13311335
.is_some_and(|n| n.to_ascii_lowercase().contains(search))

0 commit comments

Comments
 (0)