mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Use async loading
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user