Change FilterTerms to use LocalisableString

This commit is contained in:
Dan Balasescu
2022-05-16 14:09:37 +09:00
parent 328561f5c8
commit a633501687
18 changed files with 35 additions and 26 deletions

View File

@ -20,13 +20,12 @@ namespace osu.Game.Overlays.Settings
public LocalisableString TooltipText { get; set; }
public override IEnumerable<string> FilterTerms
public override IEnumerable<LocalisableString> FilterTerms
{
get
{
if (TooltipText != default)
// TODO: this won't work as intended once the tooltip text is translated.
return base.FilterTerms.Append(TooltipText.ToString());
return base.FilterTerms.Append(TooltipText);
return base.FilterTerms;
}