Fix ModDisplay expanding on load with "always contracted/expanded" modes

This is especially visible when reloading `SongSelectFooterV2` while multiple mods are already selected. The mods will appear expanded then contract.
This commit is contained in:
Salman Ahmed 2024-05-10 02:21:24 +03:00
parent d7b658ec76
commit 49692e168e

View File

@ -60,6 +60,9 @@ namespace osu.Game.Screens.Play.HUD
Current.BindValueChanged(updateDisplay, true);
iconsContainer.FadeInFromZero(fade_duration, Easing.OutQuint);
if (ExpansionMode == ExpansionMode.AlwaysExpanded || ExpansionMode == ExpansionMode.AlwaysContracted)
FinishTransforms(true);
}
private void updateDisplay(ValueChangedEvent<IReadOnlyList<Mod>> mods)