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:
parent
72af5bf672
commit
d37ba2c9a4
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user