From dac002628c2153ecc866dc444cd60d56d6021332 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 4 May 2023 16:59:40 +0200 Subject: [PATCH] fixed setting BPMrate to 0.0 killing installation --- osu-trainer/BeatmapEditor.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osu-trainer/BeatmapEditor.cs b/osu-trainer/BeatmapEditor.cs index 6a7d543..defb5e1 100644 --- a/osu-trainer/BeatmapEditor.cs +++ b/osu-trainer/BeatmapEditor.cs @@ -690,7 +690,10 @@ private void ApplyBpmMultiplier(decimal multiplier) if (BpmRate == multiplier) return; if (multiplier < 0.1M) + { BeatmapModified?.Invoke(this, EventArgs.Empty); // reject this value and revert view + return; + } BpmRate = multiplier;