1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-28 23:32:59 +08:00

Fix filter failure when no collection is selected

This commit is contained in:
Dean Herbert 2022-06-08 19:30:18 +09:00
parent 6aa84425a2
commit c22bffaa01

View File

@ -30,6 +30,10 @@ namespace osu.Game.Overlays.Music
var items = (SearchContainer<RearrangeableListItem<Live<BeatmapSetInfo>>>)ListContainer;
foreach (var item in items.OfType<PlaylistItem>())
{
if (criteria.Collection == null)
item.InSelectedCollection = true;
else
{
var beatmapHashes = item.Model.Value.Beatmaps.Select(b => b.MD5Hash);
@ -46,6 +50,7 @@ namespace osu.Game.Overlays.Music
item.InSelectedCollection = contained;
}
}
items.SearchTerm = criteria.SearchText;
}