From 31ddcbb33695ec7899f40a688661e595e9849410 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Fri, 22 Sep 2023 16:30:25 +0200 Subject: [PATCH] When applying the search filter use also the ships name in the free text input --- src/BreCalClient/MainWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BreCalClient/MainWindow.xaml.cs b/src/BreCalClient/MainWindow.xaml.cs index 7c7b9a5..edfbb34 100644 --- a/src/BreCalClient/MainWindow.xaml.cs +++ b/src/BreCalClient/MainWindow.xaml.cs @@ -450,7 +450,7 @@ namespace BreCalClient if(!string.IsNullOrEmpty(sfm.SearchString)) { - this._visibleControlModels.RemoveAll(x => !x.ContainsRemarkText(sfm.SearchString)); + this._visibleControlModels.RemoveAll(x => !(x.ContainsRemarkText(sfm.SearchString) || (x.Ship?.Name.Contains(sfm.SearchString, StringComparison.InvariantCultureIgnoreCase) ?? false))); } if(sfm.ShipLengthTo != null)