1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 06:42:56 +08:00

Fix slightly wrong binding setup

This commit is contained in:
Bartłomiej Dach 2023-09-11 10:16:09 +02:00
parent 97665e029b
commit ff6bf0bc2c
No known key found for this signature in database

View File

@ -157,8 +157,7 @@ namespace osu.Game.Overlays.Mods
content.BorderColour = ColourInfo.GradientVertical(background.Colour, glowColour);
innerContent.BorderColour = ColourInfo.GradientVertical(innerBackground.Colour, glowColour);
BeatmapInfo.BindValueChanged(_ => updateValues(), true);
BeatmapInfo.BindValueChanged(_ => updateValues());
mods.BindValueChanged(_ =>
{
modSettingChangeTracker?.Dispose();
@ -166,7 +165,7 @@ namespace osu.Game.Overlays.Mods
modSettingChangeTracker = new ModSettingChangeTracker(mods.Value);
modSettingChangeTracker.SettingChanged += _ => updateValues();
updateValues();
});
}, true);
}
private void updateValues() => Scheduler.AddOnce(() =>