1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 23:22:55 +08:00

Refactor FilterControl.Search

This commit is contained in:
Drew DeVault 2017-01-30 09:48:12 -05:00
parent 42a2285ef3
commit 7f3cb381a9

View File

@ -46,7 +46,7 @@ namespace osu.Game.Screens.Select
public Action FilterChanged;
public string Search { get; private set; } = string.Empty;
public string Search => searchTextBox.Text;
public SortMode Sort { get; private set; } = SortMode.Title;
private SearchTextBox searchTextBox;
@ -82,7 +82,6 @@ namespace osu.Game.Screens.Select
searchTextBox.OnChange += (sender, text) =>
{
Search = searchTextBox.Text;
FilterChanged?.Invoke();
};
}