Skip to content

Commit

Permalink
Merge pull request #988 from Tharylia/feat/repo-view-search
Browse files Browse the repository at this point in the history
Allow searching for descriptions in repo view
  • Loading branch information
dlamkins authored Sep 29, 2024
2 parents 63ce46e + 5037e9c commit d29cad7
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 d29cad7

Please sign in to comment.