1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 09:07:25 +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);
currentQuery.ValueChanged += v =>
{
queryChangedDebounce?.Cancel();
//currentQuery.ValueChanged += v =>
//{
// queryChangedDebounce?.Cancel();
if (string.IsNullOrEmpty(v))
Scheduler.AddOnce(updateSearch);
else
{
Users = null;
queryChangedDebounce = Scheduler.AddDelayed(updateSearch, 500);
}
};
// if (string.IsNullOrEmpty(v))
// Scheduler.AddOnce(updateSearch);
// else
// {
// Users = null;
// queryChangedDebounce = Scheduler.AddDelayed(updateSearch, 500);
// }
//};
currentQuery.BindTo(Filter.Search.Current);