mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 15:33:05 +08:00
moved query into schedule
This commit is contained in:
parent
1417dfd67a
commit
e4628427cb
@ -205,15 +205,21 @@ namespace osu.Game.Screens.Select
|
||||
}
|
||||
|
||||
private void onBeatmapRestored(BeatmapInfo beatmap)
|
||||
{
|
||||
Schedule(() =>
|
||||
{
|
||||
var beatmapSet = beatmaps.QueryBeatmapSet(s => s.ID == beatmap.BeatmapSetInfoID);
|
||||
Schedule(() => carousel.UpdateBeatmapSet(beatmapSet));
|
||||
carousel.UpdateBeatmapSet(beatmapSet);
|
||||
});
|
||||
}
|
||||
|
||||
private void onBeatmapHidden(BeatmapInfo beatmap)
|
||||
{
|
||||
Schedule(() =>
|
||||
{
|
||||
var beatmapSet = beatmaps.QueryBeatmapSet(s => s.ID == beatmap.BeatmapSetInfoID);
|
||||
Schedule(() => carousel.UpdateBeatmapSet(beatmapSet));
|
||||
carousel.UpdateBeatmapSet(beatmapSet);
|
||||
});
|
||||
}
|
||||
|
||||
private void carouselBeatmapsLoaded()
|
||||
|
Loading…
Reference in New Issue
Block a user