Merge pull request #21476 from peppy/fix-editor-textbox-parsin

Fix incorrect culture used when parsing timeline popup textbox content
This commit is contained in:
Dan Balasescu 2022-12-02 15:33:23 +09:00 committed by GitHub
commit 9a60644793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 2 deletions

View File

@ -94,7 +94,20 @@ namespace osu.Game.Screens.Edit.Timing
try
{
slider.Current.Parse(t.Text);
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
{
slider.Current.Parse(t.Text);
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
{