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 => request.Success += beatmap =>
{ {
ClearInternal(); ClearInternal();
AddInternal(new DirectGridPanel(beatmap.ToBeatmapSet(rulesets))); var panel = new DirectGridPanel(beatmap.ToBeatmapSet(rulesets));
LoadComponentAsync(panel, p => { AddInternal(panel); });
}; };
api.Queue(request); api.Queue(request);
} }