1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-14 05:47:20 +08:00

Fix beatmap listing continually paginating for null cursors

This commit is contained in:
smoogipoo 2021-07-21 15:59:02 +09:00
parent 3121836741
commit 0118c3638c

View File

@ -189,6 +189,10 @@ namespace osu.Game.Overlays.BeatmapListing
private void performRequest()
{
// If the previous request returned a null cursor, the API is indicating we can't paginate further (maybe there are no more beatmaps left).
if (lastResponse != null && lastResponse.Cursor == null)
return;
getSetsRequest = new SearchBeatmapSetsRequest(
searchControl.Query.Value,
searchControl.Ruleset.Value,