Skip to content

Commit

Permalink
Allow searching for descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharylia committed Sep 25, 2024
1 parent 2a3a2cd commit 5037e9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Blish HUD/GameServices/Modules/UI/Views/ModuleRepoView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ private void SearchboxOnTextChanged(object sender, EventArgs e) {
private bool PkgSearchFilter(ViewContainer viewContainer) {
var pkgView = viewContainer.CurrentView as ManagePkgView;

return pkgView.ModuleName.ToLowerInvariant().Contains(_searchbox.Text.ToLowerInvariant());
var searchText = _searchbox.Text.ToLowerInvariant();
return pkgView.ModuleName.ToLowerInvariant().Contains(searchText) || pkgView.ModuleDescription.ToLowerInvariant().Contains(searchText);
}

private bool PkgNeedsUpdateFilter(ViewContainer viewContainer) {
Expand Down

0 comments on commit 5037e9c

Please sign in to comment.