mirror of
https://github.com/osukey/osukey.git
synced 2025-06-23 12:18:03 +09: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();
|
base.LoadComplete();
|
||||||
|
|
||||||
SelectedMods.BindValueChanged(_ => updateSelectedButtons());
|
|
||||||
availableMods.BindValueChanged(_ => updateAvailableMods(), true);
|
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()
|
protected override void PopOut()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user