mirror of
https://github.com/ppy/osu
synced 2024-12-09 08:30:36 +00:00
Fix ValueChanged events being called out of order
This commit is contained in:
parent
6f2edaad55
commit
6e09d857fd
@ -53,7 +53,13 @@ namespace osu.Game.Graphics.Containers
|
||||
|
||||
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
Block a user