Skip to content

Commit 092b80b

Browse files
committed
Fixed some references initially being displayed collapsed after the search
1 parent 524965a commit 092b80b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Plugins/AssetUsageDetector/Editor/SearchResultTreeView.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,8 @@ private bool GetMainReferenceIdsRecursive( TreeViewItem item, List<int> ids )
966966
for( int i = 0; i < item.children.Count; i++ )
967967
shouldExpand |= GetMainReferenceIdsRecursive( item.children[i], ids );
968968
}
969+
else
970+
shouldExpand = true; // No main reference is encountered in this branch; expand the whole branch
969971

970972
if( shouldExpand )
971973
ids.Add( item.id );

0 commit comments

Comments
 (0)