1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-12 21:38:38 +00:00

Core - Fixed logical layouts not being picked correctly

This commit is contained in:
Diogo Trindade 2022-12-23 22:18:08 +00:00
parent 6b7de952ba
commit 2efb3feff7

View File

@ -63,7 +63,7 @@ public class ArtemisLedLayout
// Prefer a matching layout or else a default layout (that has no name)
LayoutCustomLedDataLogicalLayout logicalLayout = LayoutCustomLedData.LogicalLayouts
.OrderBy(l => l.Name == artemisDevice.LogicalLayout)
.OrderByDescending(l => l.Name == artemisDevice.LogicalLayout)
.ThenBy(l => l.Name == null)
.First();