1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 15:33:05 +08:00

Use BindValueChanged to handle changes between push time and schedule execution

This commit is contained in:
Salman Ahmed 2022-07-14 07:07:32 +03:00
parent b96faedbe6
commit dccd81dbc7

View File

@ -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();