mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 08:33:55 +09:00
Fix filter failure when no collection is selected
This commit is contained in:
@ -30,6 +30,10 @@ namespace osu.Game.Overlays.Music
|
|||||||
var items = (SearchContainer<RearrangeableListItem<Live<BeatmapSetInfo>>>)ListContainer;
|
var items = (SearchContainer<RearrangeableListItem<Live<BeatmapSetInfo>>>)ListContainer;
|
||||||
|
|
||||||
foreach (var item in items.OfType<PlaylistItem>())
|
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);
|
var beatmapHashes = item.Model.Value.Beatmaps.Select(b => b.MD5Hash);
|
||||||
|
|
||||||
@ -46,6 +50,7 @@ namespace osu.Game.Overlays.Music
|
|||||||
|
|
||||||
item.InSelectedCollection = contained;
|
item.InSelectedCollection = contained;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
items.SearchTerm = criteria.SearchText;
|
items.SearchTerm = criteria.SearchText;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user