1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Remove now unnecessary ScheduleAfterChildren

This commit is contained in:
Dean Herbert 2022-10-05 14:20:01 +09:00
parent e06ece7531
commit 276021dd85

View File

@ -335,8 +335,7 @@ namespace osu.Game.Screens.Play.HUD
private float? scoreComponentsTargetWidth;
// Schedule required to get correct DrawWidth from text after updates.
private void updateDetailsWidth() => SchedulerAfterChildren.AddOnce(() =>
private void updateDetailsWidth()
{
const float score_components_min_width = 88f;
@ -349,7 +348,7 @@ namespace osu.Game.Screens.Play.HUD
scoreComponentsTargetWidth = newWidth;
scoreComponents.ResizeWidthTo(newWidth, panel_transition_duration, Easing.OutQuint);
});
}
private void updateState()
{