1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 11:42:54 +08:00

Use loadComponentSingleFile for caching

This commit is contained in:
Craftplacer 2019-09-15 17:15:52 +02:00
parent 811a08d18f
commit 08ab4e508f

View File

@ -485,7 +485,7 @@ namespace osu.Game
toolbarElements.Add(d);
});
dependencies.Cache(loadComponentSingleFile(volume = new VolumeOverlay(), leftFloatingOverlayContent.Add));
loadComponentSingleFile(volume = new VolumeOverlay(), leftFloatingOverlayContent.Add, true);
loadComponentSingleFile(new OnScreenDisplay(), Add, true);