mirror of
https://github.com/yasirkula/UnityAssetUsageDetector.git
synced 2026-11-19 14:32:37 +08:00
SearchResultGroup's "Hide Search Results" context menu button automatically exits the search
This commit is contained in:
@@ -816,6 +816,7 @@ namespace AssetUsageDetectorNamespace
|
||||
removedRows.Add( treeViewRows[i].id );
|
||||
}
|
||||
|
||||
treeView.ClearSearch();
|
||||
treeView.HideItems( removedRows );
|
||||
} );
|
||||
}
|
||||
|
||||
@@ -200,6 +200,13 @@ namespace AssetUsageDetectorNamespace
|
||||
RefreshSelectedNodes( GetSelection() );
|
||||
}
|
||||
|
||||
public void ClearSearch()
|
||||
{
|
||||
string prevSearchTerm = state.searchTerm;
|
||||
state.searchTerm = "";
|
||||
RefreshSearch( prevSearchTerm );
|
||||
}
|
||||
|
||||
public void RefreshSearch( string prevSearchTerm )
|
||||
{
|
||||
bool wasSearchTermEmpty = string.IsNullOrEmpty( prevSearchTerm );
|
||||
|
||||
Reference in New Issue
Block a user