1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-19 07:07:18 +08:00

Rename locals for legibility

This commit is contained in:
Bartłomiej Dach 2022-08-03 21:23:31 +02:00
parent 82d3fbd51b
commit 159d3b032c
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -42,10 +42,10 @@ namespace osu.Game.Overlays.Mods
{
base.LoadComplete();
selectedMods.BindValueChanged(val => Enabled.Value = val.NewValue.Any(), true);
Enabled.BindValueChanged(val =>
selectedMods.BindValueChanged(mods => Enabled.Value = mods.NewValue.Any(), true);
Enabled.BindValueChanged(enabled =>
{
if (!val.NewValue)
if (!enabled.NewValue)
Active.Value = false;
});
}