mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Fix beatmap listing continually paginating for null cursors
This commit is contained in:
@ -189,6 +189,10 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
|
|
||||||
private void performRequest()
|
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(
|
getSetsRequest = new SearchBeatmapSetsRequest(
|
||||||
searchControl.Query.Value,
|
searchControl.Query.Value,
|
||||||
searchControl.Ruleset.Value,
|
searchControl.Ruleset.Value,
|
||||||
|
Reference in New Issue
Block a user