mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Merge pull request #28079 from peppy/fix-double-load-playlist-backgrounds
Fix beatmap backgrounds loading default briefly before final display
This commit is contained in:
commit
aecfcc86cd
@ -52,8 +52,11 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
|
||||
private Drawable getDrawableForModel(IBeatmapInfo? model)
|
||||
{
|
||||
if (model == null)
|
||||
return Empty();
|
||||
|
||||
// prefer online cover where available.
|
||||
if (model?.BeatmapSet is IBeatmapSetOnlineInfo online)
|
||||
if (model.BeatmapSet is IBeatmapSetOnlineInfo online)
|
||||
return new OnlineBeatmapSetCover(online, beatmapSetCoverType);
|
||||
|
||||
if (model is BeatmapInfo localModel)
|
||||
|
Loading…
Reference in New Issue
Block a user