This commit is contained in:
MrTheMake 2017-05-25 17:49:47 +02:00
parent c32d816f9c
commit 9de7e7bc40
1 changed files with 7 additions and 7 deletions

View File

@ -264,14 +264,14 @@ private void next()
private void beatmapChanged(WorkingBeatmap beatmap)
{
progressBar.IsEnabled = beatmap != null;
TransformDirection direction = TransformDirection.None;
if (current != null)
{
progressBar.IsEnabled = beatmap != null;
bool audioEquals = beatmapBacking.Value?.BeatmapInfo?.AudioEquals(current.BeatmapInfo) ?? false;
TransformDirection direction;
if (audioEquals)
direction = TransformDirection.None;
else if (queuedDirection.HasValue)
@ -287,12 +287,12 @@ private void beatmapChanged(WorkingBeatmap beatmap)
direction = last > next ? TransformDirection.Prev : TransformDirection.Next;
}
updateDisplay(beatmapBacking, direction);
queuedDirection = null;
}
current = beatmapBacking.Value;
updateDisplay(beatmapBacking, direction);
queuedDirection = null;
}
private ScheduledDelegate pendingBeatmapSwitch;