mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Remove local cancellation token
This commit is contained in:
@ -159,10 +159,10 @@ namespace osu.Game.Screens.Select.Details
|
|||||||
if (Beatmap == null)
|
if (Beatmap == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var ourSource = starDifficultyCancellationSource = new CancellationTokenSource();
|
starDifficultyCancellationSource = new CancellationTokenSource();
|
||||||
|
|
||||||
normalStarDifficulty = difficultyManager.GetBindableDifficulty(Beatmap, ruleset.Value, null, cancellationToken: ourSource.Token);
|
normalStarDifficulty = difficultyManager.GetBindableDifficulty(Beatmap, ruleset.Value, null, starDifficultyCancellationSource.Token);
|
||||||
moddedStarDifficulty = difficultyManager.GetBindableDifficulty(Beatmap, ruleset.Value, mods.Value, ourSource.Token);
|
moddedStarDifficulty = difficultyManager.GetBindableDifficulty(Beatmap, ruleset.Value, mods.Value, starDifficultyCancellationSource.Token);
|
||||||
|
|
||||||
normalStarDifficulty.BindValueChanged(_ => updateDisplay());
|
normalStarDifficulty.BindValueChanged(_ => updateDisplay());
|
||||||
moddedStarDifficulty.BindValueChanged(_ => updateDisplay(), true);
|
moddedStarDifficulty.BindValueChanged(_ => updateDisplay(), true);
|
||||||
|
Reference in New Issue
Block a user