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:
parent
0ec45e2a8b
commit
1b559c1585
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user