diff --git a/osu.Game/Overlays/Direct/PlayButton.cs b/osu.Game/Overlays/Direct/PlayButton.cs index 32435a4873..9317bc06cf 100644 --- a/osu.Game/Overlays/Direct/PlayButton.cs +++ b/osu.Game/Overlays/Direct/PlayButton.cs @@ -134,6 +134,7 @@ namespace osu.Game.Overlays.Direct else { Preview?.Stop(); + loading = false; } } @@ -143,6 +144,8 @@ namespace osu.Game.Overlays.Direct { if (trackLoader != null) return; + loading = true; + Add(new AsyncLoadWrapper(trackLoader = new TrackLoader($"https://b.ppy.sh/preview/{BeatmapSet.OnlineBeatmapSetID}.mp3") { OnLoadComplete = d => @@ -152,6 +155,7 @@ namespace osu.Game.Overlays.Direct Preview = (d as TrackLoader)?.Preview; Playing.TriggerChange(); + loading = false; }, })); }