mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 00:09:55 +09:00
Move scheduler call to inside method itself for added safety
This commit is contained in:
@ -101,7 +101,7 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
beatmapDifficulty?.UnbindAll();
|
||||
beatmapDifficulty = difficultyManager.GetBindableDifficulty(beatmap.BeatmapInfo, cancellationSource.Token);
|
||||
beatmapDifficulty.BindValueChanged(_ => Schedule(updateDisplay));
|
||||
beatmapDifficulty.BindValueChanged(_ => updateDisplay());
|
||||
|
||||
updateDisplay();
|
||||
}
|
||||
@ -112,6 +112,10 @@ namespace osu.Game.Screens.Select
|
||||
private BufferedWedgeInfo loadingInfo;
|
||||
|
||||
private void updateDisplay()
|
||||
{
|
||||
Scheduler.AddOnce(perform);
|
||||
|
||||
void perform()
|
||||
{
|
||||
void removeOldInfo()
|
||||
{
|
||||
@ -141,6 +145,7 @@ namespace osu.Game.Screens.Select
|
||||
Add(Info = loaded);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
|
Reference in New Issue
Block a user