1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 15:05:34 +08:00

Use async loading

This commit is contained in:
Andrei Zavatski 2019-08-08 12:01:33 +03:00
parent 0ec45e2a8b
commit 1b559c1585

View File

@ -39,7 +39,8 @@ namespace osu.Game.Screens.Multi.Match.Components
request.Success += beatmap =>
{
ClearInternal();
AddInternal(new DirectGridPanel(beatmap.ToBeatmapSet(rulesets)));
var panel = new DirectGridPanel(beatmap.ToBeatmapSet(rulesets));
LoadComponentAsync(panel, p => { AddInternal(panel); });
};
api.Queue(request);
}