1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 15:27:24 +08:00

Merge pull request #10782 from bdach/bandaid-editor-timing-point-crash

Temporarily fix crash on deleting control point groups
This commit is contained in:
Dean Herbert 2020-11-11 09:22:40 +09:00 committed by GitHub
commit 390f7644d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,12 +85,13 @@ namespace osu.Game.Screens.Edit.Timing
{
textBox.Text = string.Empty;
textBox.Current.Disabled = true;
// cannot use textBox.Current.Disabled due to https://github.com/ppy/osu-framework/issues/3919
textBox.ReadOnly = true;
button.Enabled.Value = false;
return;
}
textBox.Current.Disabled = false;
textBox.ReadOnly = false;
button.Enabled.Value = true;
textBox.Text = $"{group.NewValue.Time:n0}";