Allow filtering settings matching based on dropdown content

This commit is contained in:
Dean Herbert 2019-01-23 17:30:05 +09:00
parent cbbcaf6821
commit 1025c51e0d
2 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,8 @@ public IEnumerable<T> Items
}
}
public override IEnumerable<string> FilterTerms => base.FilterTerms.Concat(Control.Items.Select(i => i.ToString()));
protected sealed override Drawable CreateControl() => CreateDropdown();
protected virtual OsuDropdown<T> CreateDropdown() => new DropdownControl { Items = Items };

View File

@ -72,7 +72,7 @@ public virtual Bindable<T> Bindable
}
}
public IEnumerable<string> FilterTerms => new[] { LabelText };
public virtual IEnumerable<string> FilterTerms => new[] { LabelText };
public bool MatchingFilter
{