mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 23:57:18 +09: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.
|
// if any existing dialog is being displayed, dismiss it before showing a new one.
|
||||||
lastDialog?.Hide();
|
lastDialog?.Hide();
|
||||||
|
|
||||||
dialog.State.ValueChanged += state => onDialogStateChanged(dialog, state.NewValue), true);
|
dialog.State.BindValueChanged(state => onDialogStateChanged(dialog, state.NewValue), true);
|
||||||
dialogContainer.Add(dialog);
|
dialogContainer.Add(dialog);
|
||||||
|
|
||||||
Show();
|
Show();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user