1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-12 21:38:38 +00:00

Core - Fixed color gradient migration

would throw when a layer doesn't have a layerbrush set
This commit is contained in:
Diogo Trindade 2022-11-09 20:01:33 +00:00
parent 0a3e822d03
commit d67ffb16e3

View File

@ -67,7 +67,7 @@ public class M0021GradientNodes : IStorageMigration
List<ProfileEntity> profiles = repository.Query<ProfileEntity>().ToList();
foreach (ProfileEntity profileEntity in profiles)
{
foreach (LayerEntity layer in profileEntity.Layers)
foreach (LayerEntity layer in profileEntity.Layers.Where(le => le.LayerBrush != null))
MigrateDataBinding(layer.LayerBrush.PropertyGroup);
repository.Update(profileEntity);