mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 04:02:57 +08:00
Forgot a clock.Stop call
This commit is contained in:
parent
bdbeb2bce4
commit
544d5d1d86
@ -1145,7 +1145,7 @@ namespace osu.Game.Screens.Edit
|
||||
|
||||
if (groups.Length != 4 || string.IsNullOrEmpty(groups[0]))
|
||||
{
|
||||
Schedule(() => notifications.Post(new SimpleNotification
|
||||
Schedule(() => notifications?.Post(new SimpleNotification
|
||||
{
|
||||
Icon = FontAwesome.Solid.ExclamationTriangle,
|
||||
Text = EditorStrings.FailedToProcessTimestamp
|
||||
@ -1162,7 +1162,7 @@ namespace osu.Game.Screens.Edit
|
||||
// Limit timestamp link length at 30000 min (50 hr) to avoid parsing issues
|
||||
if (string.IsNullOrEmpty(timeMin) || timeMin.Length > 5 || double.Parse(timeMin) > 30_000)
|
||||
{
|
||||
Schedule(() => notifications.Post(new SimpleNotification
|
||||
Schedule(() => notifications?.Post(new SimpleNotification
|
||||
{
|
||||
Icon = FontAwesome.Solid.ExclamationTriangle,
|
||||
Text = EditorStrings.TooLongTimestamp
|
||||
@ -1172,6 +1172,9 @@ namespace osu.Game.Screens.Edit
|
||||
|
||||
editorBeatmap.SelectedHitObjects.Clear();
|
||||
|
||||
if (clock.IsRunning)
|
||||
clock.Stop();
|
||||
|
||||
double position = EditorTimestampParser.GetTotalMilliseconds(timeMin, timeSec, timeMss);
|
||||
|
||||
if (string.IsNullOrEmpty(objectsGroup))
|
||||
|
Loading…
Reference in New Issue
Block a user