1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 21:43:04 +08:00

Merge pull request #28876 from peppy/fix-daily-challenge-disposal-aa

Fix potential crash when exiting daily challenge screen
This commit is contained in:
Dan Balasescu 2024-07-16 10:34:43 +09:00 committed by GitHub
commit f6b4d54fef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,7 +122,7 @@ namespace osu.Game.Screens.OnlinePlay.DailyChallenge
{
var request = new IndexPlaylistScoresRequest(room.RoomID.Value!.Value, playlistItem.ID);
request.Success += req =>
request.Success += req => Schedule(() =>
{
var best = req.Scores.Select(s => s.CreateScoreInfo(scoreManager, rulesets, playlistItem, beatmap.Value.BeatmapInfo)).ToArray();
var userBest = req.UserScore?.CreateScoreInfo(scoreManager, rulesets, playlistItem, beatmap.Value.BeatmapInfo);
@ -165,7 +165,7 @@ namespace osu.Game.Screens.OnlinePlay.DailyChallenge
}
userBestHeader.FadeTo(userBest == null ? 0 : 1);
};
});
loadingLayer.Show();
scoreFlow.FadeTo(0.5f, 400, Easing.OutQuint);