mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Apply suggestions from code review
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
@ -24,6 +24,11 @@ namespace osu.Game.Overlays.Settings
|
||||
protected abstract LocalisableString Header { get; }
|
||||
|
||||
public IEnumerable<IFilterable> FilterableChildren => Children.OfType<IFilterable>();
|
||||
|
||||
// FilterTerms should contains both original string and localised string for user to search.
|
||||
// Since LocalisableString is unable to get original string at this time (2021-08-14),
|
||||
// only call .ToString() to use localised one.
|
||||
// TODO: Update here when FilterTerms accept LocalisableString.
|
||||
public virtual IEnumerable<string> FilterTerms => new[] { Header.ToString() };
|
||||
|
||||
public bool MatchingFilter
|
||||
|
Reference in New Issue
Block a user