mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:43:20 +08:00
fix loading animation not playing
This commit is contained in:
parent
120d3fbbec
commit
2938ca9488
@ -143,6 +143,8 @@ namespace osu.Game.Overlays.Direct
|
|||||||
{
|
{
|
||||||
if (trackLoader != null) return;
|
if (trackLoader != null) return;
|
||||||
|
|
||||||
|
loading = true;
|
||||||
|
|
||||||
Add(new AsyncLoadWrapper(trackLoader = new TrackLoader($"https://b.ppy.sh/preview/{BeatmapSet.OnlineBeatmapSetID}.mp3")
|
Add(new AsyncLoadWrapper(trackLoader = new TrackLoader($"https://b.ppy.sh/preview/{BeatmapSet.OnlineBeatmapSetID}.mp3")
|
||||||
{
|
{
|
||||||
OnLoadComplete = d =>
|
OnLoadComplete = d =>
|
||||||
@ -152,6 +154,7 @@ namespace osu.Game.Overlays.Direct
|
|||||||
|
|
||||||
Preview = (d as TrackLoader)?.Preview;
|
Preview = (d as TrackLoader)?.Preview;
|
||||||
Playing.TriggerChange();
|
Playing.TriggerChange();
|
||||||
|
loading = false;
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user