Skip to content

Commit

Permalink
Merge pull request #358 from DarthAffe/bugfix/layout-saving
Browse files Browse the repository at this point in the history
Fix custom LED data type not being determined correctly
  • Loading branch information
DarthAffe authored Nov 1, 2023
2 parents 99225f0 + 08fbb0e commit 5592fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RGB.NET.Layout/LayoutExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static void Save(this IDeviceLayout layout, string targetFile)
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))
Expand Down

0 comments on commit 5592fd9

Please sign in to comment.