mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 18:27:26 +08:00
show beatmapsets with pending deletion in osu!direct
This commit is contained in:
parent
64c32f5715
commit
596044e19d
@ -298,13 +298,15 @@ namespace osu.Game.Overlays
|
||||
Task.Run(() =>
|
||||
{
|
||||
var onlineIds = response.Select(r => r.OnlineBeatmapSetID).ToList();
|
||||
var presentOnlineIds = beatmaps.QueryBeatmapSets(s => onlineIds.Contains(s.OnlineBeatmapSetID)).Select(r => r.OnlineBeatmapSetID).ToList();
|
||||
var sets = response.Select(r => r.ToBeatmapSet(rulesets)).Where(b => !presentOnlineIds.Contains(b.OnlineBeatmapSetID)).ToList();
|
||||
var presentSets = beatmaps.QueryBeatmapSets(s => onlineIds.Contains(s.OnlineBeatmapSetID)).ToList();
|
||||
|
||||
var responseSets = response.Select(r => r.ToBeatmapSet(rulesets)).ToList();
|
||||
var finalSets = responseSets.Where(b => !presentSets.Any(s => s.OnlineBeatmapSetID == b.OnlineBeatmapSetID && !s.DeletePending)).ToList();
|
||||
|
||||
// may not need scheduling; loads async internally.
|
||||
Schedule(() =>
|
||||
{
|
||||
BeatmapSets = sets;
|
||||
BeatmapSets = finalSets;
|
||||
recreatePanels(Filter.DisplayStyleControl.DisplayStyle.Value);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user