Added layout archive generation

This commit is contained in:
RobertBeekman committed 2023-11-02 22:29:42 +01:00
1 parent 59fe1df40f
commit 6b4e84c95a
18 files changed
+224 -68

No files matched your search

@@ -64,7 +64,12 @@ public class ArtemisLedLayout
private void ApplyLogicalLayout(LayoutCustomLedDataLogicalLayout logicalLayout)
{
string? layoutDirectory = Path.GetDirectoryName(DeviceLayout.FilePath);
LogicalName = logicalLayout.Name;
Image = new Uri(Path.Combine(Path.GetDirectoryName(DeviceLayout.FilePath)!, logicalLayout.Image!), UriKind.Absolute);
if (layoutDirectory != null && logicalLayout.Image != null)
Image = new Uri(Path.Combine(layoutDirectory, logicalLayout.Image!), UriKind.Absolute);
else
Image = null;
}
}