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:
parent
0a3e822d03
commit
d67ffb16e3
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user