mirror of
https://github.com/ppy/osu.git
synced 2026-05-13 19:54:15 +08:00
Don't search for users when no search query is provided (#37660)
Doesn't make much sense and looks to be stressing the server a bit (results take some time to return). Just a quick fix.
This commit is contained in:
committed by
GitHub
Unverified
parent
1818c1b1e6
commit
21c892fa7d
@@ -149,17 +149,17 @@ namespace osu.Game.Overlays.Dashboard.UserSearch
|
||||
return;
|
||||
}
|
||||
|
||||
queryChangedDebounce = Scheduler.AddDelayed(performSearch, 500);
|
||||
}
|
||||
|
||||
private void performSearch()
|
||||
{
|
||||
if (string.IsNullOrEmpty(searchTextBox.Current.Value))
|
||||
{
|
||||
loading.Value = false;
|
||||
return;
|
||||
}
|
||||
|
||||
queryChangedDebounce = Scheduler.AddDelayed(performSearch, 500);
|
||||
}
|
||||
|
||||
private void performSearch()
|
||||
{
|
||||
loading.Value = true;
|
||||
var getUsersRequest = new SearchUsersRequest(searchTextBox.Current.Value);
|
||||
getUsersRequest.Success += showResults;
|
||||
|
||||
Reference in New Issue
Block a user