1
0
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:
ratinfx 2023-11-07 12:23:22 +01:00
parent bdbeb2bce4
commit 544d5d1d86

View File

@ -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))