Merge pull request #25821 from bdach/fix-collection-dropdown-crash

Fix collections dropdown crashing during storage migration
This commit is contained in:
Dean Herbert 2023-12-19 01:01:23 +09:00 committed by GitHub
commit c466775f78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ private void collectionsChanged(IRealmCollection<BeatmapCollection> collections,
{
if (changes == null)
{
filters.Clear();
filters.Add(allBeatmapsItem);
filters.AddRange(collections.Select(c => new CollectionFilterMenuItem(c.ToLive(realm))));
if (ShowManageCollectionsItem)