mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08:00
Fix drawable mutation from disposal thread
This commit is contained in:
parent
83703e28e6
commit
6950223a7d
@ -68,7 +68,7 @@ namespace osu.Game.Screens.Select
|
|||||||
Current.BindValueChanged(_ => updateMultiplierText(), true);
|
Current.BindValueChanged(_ => updateMultiplierText(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateMultiplierText()
|
private void updateMultiplierText() => Schedule(() =>
|
||||||
{
|
{
|
||||||
double multiplier = Current.Value?.Aggregate(1.0, (current, mod) => current * mod.ScoreMultiplier) ?? 1;
|
double multiplier = Current.Value?.Aggregate(1.0, (current, mod) => current * mod.ScoreMultiplier) ?? 1;
|
||||||
|
|
||||||
@ -85,6 +85,6 @@ namespace osu.Game.Screens.Select
|
|||||||
modDisplay.FadeIn();
|
modDisplay.FadeIn();
|
||||||
else
|
else
|
||||||
modDisplay.FadeOut();
|
modDisplay.FadeOut();
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user