mirror of https://github.com/ppy/osu
Merge branch 'master' into better-medal-loading
This commit is contained in:
commit
9385fd1cfa
|
@ -134,6 +134,7 @@ private void updatePreviewTrack(bool playing)
|
|||
else
|
||||
{
|
||||
Preview?.Stop();
|
||||
loading = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -143,6 +144,8 @@ private void beginAudioLoad()
|
|||
{
|
||||
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 @@ private void beginAudioLoad()
|
|||
|
||||
Preview = (d as TrackLoader)?.Preview;
|
||||
Playing.TriggerChange();
|
||||
loading = false;
|
||||
},
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue