mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 13:23:03 +08:00
Add basic textbox error handling
This commit is contained in:
parent
959c8730f6
commit
2698dc513f
@ -61,10 +61,17 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
|
||||
textBox.OnCommit += (sender, isNew) =>
|
||||
{
|
||||
if (!isNew)
|
||||
return;
|
||||
|
||||
if (double.TryParse(sender.Text, out var newTime))
|
||||
{
|
||||
changeSelectedGroupTime(newTime);
|
||||
}
|
||||
else
|
||||
{
|
||||
SelectedGroup.TriggerChange();
|
||||
}
|
||||
};
|
||||
|
||||
SelectedGroup.BindValueChanged(group =>
|
||||
|
Loading…
Reference in New Issue
Block a user