mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Merge branch 'development' into feature/NodeSorting
This commit is contained in:
commit
13aa9829d8
@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Artemis.Storage.Entities.Profile;
|
using Artemis.Storage.Entities.Profile;
|
||||||
using Artemis.Storage.Entities.Profile.Nodes;
|
using Artemis.Storage.Entities.Profile.Nodes;
|
||||||
@ -63,13 +64,13 @@ public class M0021GradientNodes : IStorageMigration
|
|||||||
public void Apply(LiteRepository repository)
|
public void Apply(LiteRepository repository)
|
||||||
{
|
{
|
||||||
// Find all color gradient data bindings, there's no really good way to do this so infer it from the value
|
// Find all color gradient data bindings, there's no really good way to do this so infer it from the value
|
||||||
ILiteCollection<ProfileEntity> collection = repository.Database.GetCollection<ProfileEntity>();
|
List<ProfileEntity> profiles = repository.Query<ProfileEntity>().ToList();
|
||||||
foreach (ProfileEntity profileEntity in collection.FindAll())
|
foreach (ProfileEntity profileEntity in profiles)
|
||||||
{
|
{
|
||||||
foreach (LayerEntity layer in profileEntity.Layers)
|
foreach (LayerEntity layer in profileEntity.Layers)
|
||||||
MigrateDataBinding(layer.LayerBrush.PropertyGroup);
|
MigrateDataBinding(layer.LayerBrush.PropertyGroup);
|
||||||
|
|
||||||
collection.Update(profileEntity);
|
repository.Update(profileEntity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -216,7 +216,7 @@
|
|||||||
</Button>
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Panel Grid.Row="1">
|
<Panel Grid.Row="1" IsVisible="{CompiledBinding !IsCollapsed}">
|
||||||
<ListBox Name="SidebarListBox"
|
<ListBox Name="SidebarListBox"
|
||||||
Classes="sidebar-listbox"
|
Classes="sidebar-listbox"
|
||||||
Items="{CompiledBinding ProfileConfigurations}"
|
Items="{CompiledBinding ProfileConfigurations}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user