]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Cargo request console search now includes crate descriptions (#25708)
authorFlesh <62557990+PolterTzi@users.noreply.github.com>
Fri, 1 Mar 2024 02:23:12 +0000 (03:23 +0100)
committerGitHub <noreply@github.com>
Fri, 1 Mar 2024 02:23:12 +0000 (21:23 -0500)
added condition checking description to cargo search

Content.Client/Cargo/UI/CargoConsoleMenu.xaml.cs

index 5402a24667686c9202ac72415439f776929becff..baf0d31f1f109a5d5b3eba2fcaddc985b04ac39c 100644 (file)
@@ -92,6 +92,7 @@ namespace Content.Client.Cargo.UI
                 // else if category and not search
                 if (search.Length == 0 && _category == null ||
                     search.Length != 0 && prototype.Name.ToLowerInvariant().Contains(search) ||
+                    search.Length != 0 && prototype.Description.ToLowerInvariant().Contains(search) ||
                     search.Length == 0 && _category != null && prototype.Category.Equals(_category))
                 {
                     var button = new CargoProductRow