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

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();
}
});