mirror of
https://github.com/ppy/osu
synced 2024-12-14 19:06:07 +00:00
Avoid reloading the daily challenge leaderboard when already requested
This commit is contained in:
parent
c5814e0869
commit
9ec687caab
@ -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(() =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user