mirror of
https://github.com/ppy/osu
synced 2025-01-09 15:49:32 +00:00
Avoid potential feedback from bindable event binds
This commit is contained in:
parent
67c1c4c1eb
commit
b3b0d97354
@ -371,8 +371,11 @@ namespace osu.Game.Overlays.Mods
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
SelectedMods.BindValueChanged(_ => updateSelectedButtons());
|
||||
availableMods.BindValueChanged(_ => updateAvailableMods(), true);
|
||||
|
||||
// intentionally bound after the above line to avoid a potential update feedback cycle.
|
||||
// i haven't actually observed this happening but as updateAvailableMods() changes the selection it is plausible.
|
||||
SelectedMods.BindValueChanged(_ => updateSelectedButtons());
|
||||
}
|
||||
|
||||
protected override void PopOut()
|
||||
|
Loading…
Reference in New Issue
Block a user