mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:33:01 +08:00
Use BindValueChanged
to handle changes between push time and schedule execution
This commit is contained in:
parent
b96faedbe6
commit
dccd81dbc7
@ -62,7 +62,7 @@ namespace osu.Game.Overlays
|
||||
// if any existing dialog is being displayed, dismiss it before showing a new one.
|
||||
lastDialog?.Hide();
|
||||
|
||||
dialog.State.ValueChanged += state => onDialogStateChanged(dialog, state.NewValue), true);
|
||||
dialog.State.BindValueChanged(state => onDialogStateChanged(dialog, state.NewValue), true);
|
||||
dialogContainer.Add(dialog);
|
||||
|
||||
Show();
|
||||
|
Loading…
Reference in New Issue
Block a user