1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 11:27:24 +08:00

disable searching/filtering with textbox

it doesn't do anything except from creating unnecessary requests for now
This commit is contained in:
Aergwyn 2017-12-30 11:54:03 +01:00
parent 72af5bf672
commit d37ba2c9a4

View File

@ -66,18 +66,18 @@ namespace osu.Game.Overlays
Header.Tabs.Current.ValueChanged += tab => Scheduler.AddOnce(updateSearch); Header.Tabs.Current.ValueChanged += tab => Scheduler.AddOnce(updateSearch);
currentQuery.ValueChanged += v => //currentQuery.ValueChanged += v =>
{ //{
queryChangedDebounce?.Cancel(); // queryChangedDebounce?.Cancel();
if (string.IsNullOrEmpty(v)) // if (string.IsNullOrEmpty(v))
Scheduler.AddOnce(updateSearch); // Scheduler.AddOnce(updateSearch);
else // else
{ // {
Users = null; // Users = null;
queryChangedDebounce = Scheduler.AddDelayed(updateSearch, 500); // queryChangedDebounce = Scheduler.AddDelayed(updateSearch, 500);
} // }
}; //};
currentQuery.BindTo(Filter.Search.Current); currentQuery.BindTo(Filter.Search.Current);