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

Fix beatmap values not being updated due to a varying data type

This commit is contained in:
Dean Herbert 2023-05-08 13:23:13 +09:00
parent d9dd35c020
commit 451af9d1b5

View File

@ -96,10 +96,13 @@ namespace osu.Game.Screens.Edit.Setup
};
foreach (var item in Children.OfType<LabelledSliderBar<float>>())
item.Current.ValueChanged += onValueChanged;
item.Current.ValueChanged += _ => updateValues();
foreach (var item in Children.OfType<LabelledSliderBar<double>>())
item.Current.ValueChanged += _ => updateValues();
}
private void onValueChanged(ValueChangedEvent<float> args)
private void updateValues()
{
// for now, update these on commit rather than making BeatmapMetadata bindables.
// after switching database engines we can reconsider if switching to bindables is a good direction.