mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Fix beatmap covers not being unloaded in most overlays
Eventually we'll probably want something smarter than this, but for the time being this helps stop runaway memory usage.
This commit is contained in:
@ -67,19 +67,18 @@ namespace osu.Game.Beatmaps.Drawables
|
|||||||
|
|
||||||
if (beatmapSet != null)
|
if (beatmapSet != null)
|
||||||
{
|
{
|
||||||
BeatmapSetCover cover;
|
Add(displayedCover = new DelayedLoadUnloadWrapper(() =>
|
||||||
|
{
|
||||||
Add(displayedCover = new DelayedLoadWrapper(
|
var cover = new BeatmapSetCover(beatmapSet, coverType)
|
||||||
cover = new BeatmapSetCover(beatmapSet, coverType)
|
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
FillMode = FillMode.Fill,
|
FillMode = FillMode.Fill,
|
||||||
})
|
};
|
||||||
);
|
cover.OnLoadComplete += d => d.FadeInFromZero(400, Easing.Out);
|
||||||
|
return cover;
|
||||||
cover.OnLoadComplete += d => d.FadeInFromZero(400, Easing.Out);
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user