mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Core - Fixed color gradient migration
would throw when a layer doesn't have a layerbrush set
This commit is contained in:
1 parent
0a3e822d03
commit
d67ffb16e3
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user