When applying the search filter use also the ships name in the free text input

This commit is contained in:
Daniel Schick 2023-09-22 16:30:25 +02:00 committed by puls200
parent 2f0ca85c19
commit 31ddcbb336

View File

@ -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)