1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-13 20:33:35 +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:
Dean Herbert
2026-05-08 15:20:06 +09:00
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;