From 65bac6d31aa80ad8974e3eb4c5eadb5ee9d4d165 Mon Sep 17 00:00:00 2001 From: Aergwyn Date: Wed, 17 Jan 2018 20:36:47 +0100 Subject: [PATCH] return preview instead of nothing if it exists already allows listening to it again after reaching the end --- osu.Game/Overlays/Direct/PlayButton.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/osu.Game/Overlays/Direct/PlayButton.cs b/osu.Game/Overlays/Direct/PlayButton.cs index 1646591f7f..c00fb9b122 100644 --- a/osu.Game/Overlays/Direct/PlayButton.cs +++ b/osu.Game/Overlays/Direct/PlayButton.cs @@ -150,7 +150,12 @@ namespace osu.Game.Overlays.Direct private void beginAudioLoad() { - if (trackLoader != null) return; + if (trackLoader != null) + { + Preview = trackLoader.Preview; + Playing.TriggerChange(); + return; + } loading = true;