1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 07:33:21 +08:00

Avoid reloading the daily challenge leaderboard when already requested

This commit is contained in:
Dean Herbert 2024-07-25 12:55:45 +09:00
parent c5814e0869
commit 9ec687caab
No known key found for this signature in database

View File

@ -118,9 +118,14 @@ namespace osu.Game.Screens.OnlinePlay.DailyChallenge
RefetchScores();
}
private IndexPlaylistScoresRequest? request;
public void RefetchScores()
{
var request = new IndexPlaylistScoresRequest(room.RoomID.Value!.Value, playlistItem.ID);
if (request?.CompletionState == APIRequestCompletionState.Waiting)
return;
request = new IndexPlaylistScoresRequest(room.RoomID.Value!.Value, playlistItem.ID);
request.Success += req => Schedule(() =>
{