Merge pull request #519 from Krowe-moh/optimization

This commit is contained in:
Marlon 2024-11-23 21:39:37 +01:00 committed by GitHub
commit 20adb800f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -154,14 +154,13 @@ public class AssetsFolderViewModel
if (item.Folders.Count != 0)
{
item.Folders.SetSuppressionState(false);
item.Folders.InvokeOnCollectionChanged();
foreach (var folderItem in item.Folders)
InvokeOnCollectionChanged(folderItem);
}
if (item.AssetsList.Assets.Count != 0)
if (item.AssetsList.Assets.Any())
item.AssetsList.Assets.InvokeOnCollectionChanged();
}
});