Skip to content

Commit

Permalink
Don't allow values below 1 as BPM
Browse files Browse the repository at this point in the history
  • Loading branch information
flustix committed Sep 21, 2024
1 parent 5f48489 commit fd23958
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected override IEnumerable<Drawable> CreateSettings()
DefaultText = timing.BPM.ToStringInvariant("0.00"),
OnTextChanged = box =>
{
if (float.TryParse(box.Text, CultureInfo.InvariantCulture, out var result))
if (float.TryParse(box.Text, CultureInfo.InvariantCulture, out var result) && result > 0)
timing.BPM = result;
else
box.NotifyError();
Expand Down

0 comments on commit fd23958

Please sign in to comment.