mirror of
https://github.com/ppy/osu.git
synced 2024-09-22 09:27:34 +08:00
Remove local cancellation token
This commit is contained in:
parent
44b0aae20d
commit
877b985e90
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user