1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 15:43:21 +08:00

Fix incorrect culture used when parsing timeline popup textbox content

This commit is contained in:
Dean Herbert 2022-12-01 16:08:14 +09:00
parent c5bc071c4b
commit bbf023cf68
2 changed files with 28 additions and 2 deletions

View File

@ -94,7 +94,20 @@ namespace osu.Game.Screens.Edit.Timing
try
{
switch (slider.Current)
{
case Bindable<int> bindableInt:
bindableInt.Value = int.Parse(t.Text);
break;
case Bindable<double> bindableDouble:
bindableDouble.Value = double.Parse(t.Text);
break;
default:
slider.Current.Parse(t.Text);
break;
}
}
catch
{

View File

@ -58,7 +58,20 @@ namespace osu.Game.Screens.Edit.Timing
try
{
switch (slider.Current)
{
case Bindable<int> bindableInt:
bindableInt.Value = int.Parse(t.Text);
break;
case Bindable<double> bindableDouble:
bindableDouble.Value = double.Parse(t.Text);
break;
default:
slider.Current.Parse(t.Text);
break;
}
}
catch
{