mirror of
https://github.com/ppy/osu
synced 2024-12-15 11:25:29 +00:00
Fix scheduled task not being canceled
This commit is contained in:
parent
e6e443dbce
commit
09adb23591
@ -319,7 +319,10 @@ namespace osu.Game.Screens.Select
|
||||
bool beatmapSetChange = false;
|
||||
|
||||
if (beatmap.Equals(Beatmap?.BeatmapInfo))
|
||||
{
|
||||
selectionChangedDebounce?.Cancel();
|
||||
return;
|
||||
}
|
||||
|
||||
if (beatmap.BeatmapSetInfoID == selectionChangeNoBounce?.BeatmapSetInfoID)
|
||||
sampleChangeDifficulty.Play();
|
||||
@ -330,7 +333,7 @@ namespace osu.Game.Screens.Select
|
||||
}
|
||||
|
||||
selectionChangeNoBounce = beatmap;
|
||||
|
||||
|
||||
selectionChangedDebounce?.Cancel();
|
||||
selectionChangedDebounce = Scheduler.AddDelayed(delegate
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user