1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 07:19:54 +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
Unverified
parent b96faedbe6
commit dccd81dbc7
+1 -1
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();