mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-12 17:48:31 +00:00
Fix custom LED data type not being determined correctly
This commit is contained in:
parent
99225f04fc
commit
08fbb0e526
@ -73,7 +73,7 @@ public static class LayoutExtension
|
||||
public static void Save(this IDeviceLayout layout, Stream stream)
|
||||
{
|
||||
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;
|
||||
if ((customDataType != null) && (customLedDataType != null))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user