Simplify Keywords usage for SettingsSubsection

This commit is contained in:
Andrei Zavatski
2019-11-20 21:03:31 +03:00
parent f3d9abc84a
commit 6b3010535f
3 changed files with 9 additions and 8 deletions

View File

@ -21,10 +21,7 @@ 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 IEnumerable<string> Keywords { get; set; }
public virtual IEnumerable<string> FilterTerms => new[] { Header };
public bool MatchingFilter
{