diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-02 12:03:59 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-02 12:03:59 +0100 |
commit | 8a47d6eb507b80b3a4318441cea17587565179ca (patch) | |
tree | f4ef1fff64bc2c54e982120009adf99676bbaa0c | |
parent | 7f5079f7c8c07c9508b65924c8c897e30c64d2a6 (diff) | |
parent | d81c9c32c5ea4e91de3038b30c4a7a9ab78b7481 (diff) | |
download | redot-engine-8a47d6eb507b80b3a4318441cea17587565179ca.tar.gz |
Merge pull request #87790 from nongvantinh/fix-87643
Fix incorrect condition for error filtering
-rw-r--r-- | modules/mono/editor/GodotTools/GodotTools/Build/BuildProblemsView.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/mono/editor/GodotTools/GodotTools/Build/BuildProblemsView.cs b/modules/mono/editor/GodotTools/GodotTools/Build/BuildProblemsView.cs index 93b5a6c7f8..d62eb3ce9e 100644 --- a/modules/mono/editor/GodotTools/GodotTools/Build/BuildProblemsView.cs +++ b/modules/mono/editor/GodotTools/GodotTools/Build/BuildProblemsView.cs @@ -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; - } - - return true; + 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 false; } private Color? GetProblemItemColor(BuildDiagnostic diagnostic) |