From 7f3cb381a972db745042c2e56c87c811b3bf2afc Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 30 Jan 2017 09:48:12 -0500 Subject: [PATCH] Refactor FilterControl.Search --- osu.Game/Screens/Select/FilterControl.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osu.Game/Screens/Select/FilterControl.cs b/osu.Game/Screens/Select/FilterControl.cs index 8366da7021..0dfb3ccc06 100644 --- a/osu.Game/Screens/Select/FilterControl.cs +++ b/osu.Game/Screens/Select/FilterControl.cs @@ -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(); }; }