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:
parent
93539160ad
commit
981ead68bf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user