1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:33:01 +08:00

reverted Beatmaps-setter back to its former glory

This commit is contained in:
Aergwyn 2017-12-09 08:42:59 +01:00
parent 16b8c9bd11
commit 821154d3bb

View File

@ -40,13 +40,16 @@ namespace osu.Game.Screens.Select
panels.Clear();
groups.Clear();
List<BeatmapGroup> newGroups = null;
Task.Run(() =>
{
newGroups = value.Select(createGroup).Where(g => g != null).ToList();
criteria.Filter(newGroups);
}).ContinueWith(t =>
{
Schedule(() =>
{
var newGroups = value.Select(createGroup).Where(g => g != null).ToList();
criteria.Filter(newGroups);
foreach (var g in newGroups)
addGroup(g);