This commit is contained in:
Andrei Zavatski 2019-11-20 19:42:57 +03:00
parent e820ddd3e8
commit 7d8252183e
2 changed files with 3 additions and 8 deletions

View File

@ -76,10 +76,7 @@ namespace osu.Game.Overlays.Settings
}
}
public virtual IEnumerable<string> FilterTerms => Keywords == null ? new[] { LabelText } : new List<string>(Keywords)
{
LabelText
}.ToArray();
public virtual IEnumerable<string> FilterTerms => Keywords == null ? new[] { LabelText } : new List<string>(Keywords) { LabelText }.ToArray();
public IEnumerable<string> Keywords { get; set; }

View File

@ -21,10 +21,8 @@ namespace osu.Game.Overlays.Settings
protected abstract string Header { get; }
public IEnumerable<IFilterable> FilterableChildren => Children.OfType<IFilterable>();
public virtual IEnumerable<string> FilterTerms => Keywords == null ? new[] { Header } : new List<string>(Keywords)
{
Header
}.ToArray();
public virtual IEnumerable<string> FilterTerms => Keywords == null ? new[] { Header } : new List<string>(Keywords) { Header }.ToArray();
public IEnumerable<string> Keywords { get; set; }