mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-11 04:57:15 +00:00
Merge pull request #358 from DarthAffe/bugfix/layout-saving
Fix custom LED data type not being determined correctly
This commit is contained in:
1 file changed
+1
-1
@@ -73,7 +73,7 @@ public static class LayoutExtension
|
|||||||
public static void Save(this IDeviceLayout layout, Stream stream)
|
public static void Save(this IDeviceLayout layout, Stream stream)
|
||||||
{
|
{
|
||||||
Type? customDataType = layout.CustomData?.GetType();
|
Type? customDataType = layout.CustomData?.GetType();
|
||||||
Type? customLedDataType = layout.Leds.FirstOrDefault(x => x.CustomData != null)?.GetType();
|
Type? customLedDataType = layout.Leds.FirstOrDefault(x => x.CustomData != null)?.CustomData?.GetType();
|
||||||
|
|
||||||
Type[] customTypes;
|
Type[] customTypes;
|
||||||
if ((customDataType != null) && (customLedDataType != null))
|
if ((customDataType != null) && (customLedDataType != null))
|
||||||
|
|||||||
Reference in new issue
Block a user