From d2d3d14f1572ff8fc68fd01ea43c2ef68b5882fa Mon Sep 17 00:00:00 2001 From: Jamie Taylor Date: Thu, 31 Jul 2025 13:30:27 +0900 Subject: [PATCH] Fix leaderboard SFX delegates not being cleared in some cases where scores are hidden --- osu.Game/Screens/SelectV2/BeatmapLeaderboardWedge.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osu.Game/Screens/SelectV2/BeatmapLeaderboardWedge.cs b/osu.Game/Screens/SelectV2/BeatmapLeaderboardWedge.cs index 16aa7ee44d..259ce8565b 100644 --- a/osu.Game/Screens/SelectV2/BeatmapLeaderboardWedge.cs +++ b/osu.Game/Screens/SelectV2/BeatmapLeaderboardWedge.cs @@ -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);