This commit is contained in:
MrTheMake 2017-05-25 17:49:47 +02:00
parent c32d816f9c
commit 9de7e7bc40

View File

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