mirror of https://github.com/ppy/osu
Fix ValueChanged events being called out of order
This commit is contained in:
parent
6f2edaad55
commit
6e09d857fd
|
@ -53,7 +53,13 @@ private void load(AudioManager audio)
|
|||
|
||||
samplePopIn = audio.Samples.Get(@"UI/overlay-pop-in");
|
||||
samplePopOut = audio.Samples.Get(@"UI/overlay-pop-out");
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
// This must be added after the base LoadComplete. The overlay may need to be hidden immediately if its disabled.
|
||||
State.ValueChanged += onStateChanged;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue