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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user