1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-28 04:14:26 +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
Unverified
parent 93539160ad
commit 981ead68bf
+3 -2
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