Skip to content

Commit

Permalink
修复某些情况下搜索失效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
noberumotto committed Nov 10, 2022
1 parent b5a9eaf commit 9b6fdef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion UI/Controls/Charts/Charts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,9 @@ private void HandleSearch()
bool show = false;
if (app != null)
{
show = string.IsNullOrEmpty(searchKey) || app.Name.ToLower().Contains(searchKey) || app.File.ToLower().Contains(searchKey) || app.Description.ToLower().Contains(searchKey);
string description = app.Description != null ? app.Description.ToLower() : string.Empty;

show = string.IsNullOrEmpty(searchKey) || app.Name.ToLower().Contains(searchKey) || app.File.ToLower().Contains(searchKey) || description.Contains(searchKey);
}
if (!show && app.Category != null)
{
Expand Down

0 comments on commit 9b6fdef

Please sign in to comment.