mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Ensure local mods are constructed in time for Pop{In,Out}()
This commit is contained in:
@ -192,10 +192,11 @@ namespace osu.Game.Overlays.Mods
|
|||||||
|
|
||||||
protected override void LoadComplete()
|
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);
|
availableMods.BindValueChanged(_ => createLocalMods(), true);
|
||||||
|
|
||||||
|
base.LoadComplete();
|
||||||
|
|
||||||
State.BindValueChanged(_ => samplePlaybackDisabled.Value = State.Value == Visibility.Hidden, true);
|
State.BindValueChanged(_ => samplePlaybackDisabled.Value = State.Value == Visibility.Hidden, true);
|
||||||
|
|
||||||
// This is an optimisation to prevent refreshing the available settings controls when it can be
|
// This is an optimisation to prevent refreshing the available settings controls when it can be
|
||||||
|
Reference in New Issue
Block a user