1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-07 04:13:38 +08:00

Fix leaderboard SFX delegates not being cleared in some cases where scores are hidden

This commit is contained in:
Jamie Taylor
2025-07-31 13:30:27 +09:00
Unverified
parent 094f703c02
commit d2d3d14f15
@@ -270,9 +270,6 @@ namespace osu.Game.Screens.SelectV2
cancellationTokenSource?.Cancel();
cancellationTokenSource = new CancellationTokenSource();
scoreSfxDelegates.ForEach(d => d.Cancel());
scoreSfxDelegates.Clear();
clearScores();
SetState(LeaderboardState.Success);
@@ -386,6 +383,9 @@ namespace osu.Game.Screens.SelectV2
personalBestDisplay.MoveToX(-100, 300, Easing.OutQuint);
personalBestDisplay.FadeOut(300, Easing.OutQuint);
scoresScroll.TransformTo(nameof(scoresScroll.Padding), new MarginPadding(), 300, Easing.OutQuint);
scoreSfxDelegates.ForEach(d => d.Cancel());
scoreSfxDelegates.Clear();
}
private void onLeaderboardScoreClicked(ScoreInfo score) => songSelect?.PresentScore(score);