mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Core - Fixed logical layouts not being picked correctly
This commit is contained in:
parent
6b7de952ba
commit
2efb3feff7
@ -63,7 +63,7 @@ public class ArtemisLedLayout
|
|||||||
|
|
||||||
// Prefer a matching layout or else a default layout (that has no name)
|
// Prefer a matching layout or else a default layout (that has no name)
|
||||||
LayoutCustomLedDataLogicalLayout logicalLayout = LayoutCustomLedData.LogicalLayouts
|
LayoutCustomLedDataLogicalLayout logicalLayout = LayoutCustomLedData.LogicalLayouts
|
||||||
.OrderBy(l => l.Name == artemisDevice.LogicalLayout)
|
.OrderByDescending(l => l.Name == artemisDevice.LogicalLayout)
|
||||||
.ThenBy(l => l.Name == null)
|
.ThenBy(l => l.Name == null)
|
||||||
.First();
|
.First();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user