1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-16 05:37:19 +08:00

Ensure local mods are constructed in time for Pop{In,Out}()

This commit is contained in:
Bartłomiej Dach 2022-05-11 22:20:00 +02:00
parent 93539160ad
commit 981ead68bf
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -192,10 +192,11 @@ namespace osu.Game.Overlays.Mods
protected override void LoadComplete()
{
base.LoadComplete();
// this is called before base call so that the mod state is populated early, and the transition in `PopIn()` can play out properly.
availableMods.BindValueChanged(_ => createLocalMods(), true);
base.LoadComplete();
State.BindValueChanged(_ => samplePlaybackDisabled.Value = State.Value == Visibility.Hidden, true);
// This is an optimisation to prevent refreshing the available settings controls when it can be