From 5037e9ca19ba033a365de11b60aaf5abbaa2b06f Mon Sep 17 00:00:00 2001 From: Tharylia <41393569+Tharylia@users.noreply.github.com> Date: Wed, 25 Sep 2024 12:26:00 +0200 Subject: [PATCH] Allow searching for descriptions --- Blish HUD/GameServices/Modules/UI/Views/ModuleRepoView.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Blish HUD/GameServices/Modules/UI/Views/ModuleRepoView.cs b/Blish HUD/GameServices/Modules/UI/Views/ModuleRepoView.cs index 645522340..0320d94a2 100644 --- a/Blish HUD/GameServices/Modules/UI/Views/ModuleRepoView.cs +++ b/Blish HUD/GameServices/Modules/UI/Views/ModuleRepoView.cs @@ -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) {