Merge pull request #87790 from nongvantinh/fix-87643
Fix incorrect condition for error filtering
This commit is contained in:
commit
8a47d6eb50
1 changed files with 7 additions and 7 deletions
|
@ -308,14 +308,14 @@ namespace GodotTools.Build
|
|||
return false;
|
||||
|
||||
string searchText = _searchBox.Text;
|
||||
if (!string.IsNullOrEmpty(searchText) &&
|
||||
(!diagnostic.Message.Contains(searchText, StringComparison.OrdinalIgnoreCase) ||
|
||||
!(diagnostic.File?.Contains(searchText, StringComparison.OrdinalIgnoreCase) ?? false)))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (string.IsNullOrEmpty(searchText))
|
||||
return true;
|
||||
if (diagnostic.Message.Contains(searchText, StringComparison.OrdinalIgnoreCase))
|
||||
return true;
|
||||
if (diagnostic.File?.Contains(searchText, StringComparison.OrdinalIgnoreCase) ?? false)
|
||||
return true;
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
private Color? GetProblemItemColor(BuildDiagnostic diagnostic)
|
||||
|
|
Loading…
Reference in a new issue