mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 09:22:54 +08:00
Refactor FilterControl.Search
This commit is contained in:
parent
42a2285ef3
commit
7f3cb381a9
@ -46,7 +46,7 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
public Action FilterChanged;
|
public Action FilterChanged;
|
||||||
|
|
||||||
public string Search { get; private set; } = string.Empty;
|
public string Search => searchTextBox.Text;
|
||||||
public SortMode Sort { get; private set; } = SortMode.Title;
|
public SortMode Sort { get; private set; } = SortMode.Title;
|
||||||
|
|
||||||
private SearchTextBox searchTextBox;
|
private SearchTextBox searchTextBox;
|
||||||
@ -82,7 +82,6 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
searchTextBox.OnChange += (sender, text) =>
|
searchTextBox.OnChange += (sender, text) =>
|
||||||
{
|
{
|
||||||
Search = searchTextBox.Text;
|
|
||||||
FilterChanged?.Invoke();
|
FilterChanged?.Invoke();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user