mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-10 20:46:24 +00:00
Fixed some code-issues
This commit is contained in:
1 parent
aaabbc6a8d
commit
02235a3f7f
23 files changed
+46
-41
No files matched your search
@@ -92,7 +92,7 @@ public class OpenRGBDeviceProvider : AbstractRGBDeviceProvider
|
||||
|
||||
for (int i = 0; i < deviceCount; i++)
|
||||
{
|
||||
Device? device = openRgb.GetControllerData(i);
|
||||
Device device = openRgb.GetControllerData(i);
|
||||
|
||||
int directModeIndex = Array.FindIndex(device.Modes, d => d.Name == "Direct");
|
||||
if (directModeIndex != -1)
|
||||
@@ -112,7 +112,7 @@ public class OpenRGBDeviceProvider : AbstractRGBDeviceProvider
|
||||
if (device.Zones.All(z => z.LedCount == 0))
|
||||
continue;
|
||||
|
||||
OpenRGBUpdateQueue? updateQueue = new(GetUpdateTrigger(), i, openRgb, device);
|
||||
OpenRGBUpdateQueue updateQueue = new(GetUpdateTrigger(), i, openRgb, device);
|
||||
|
||||
bool anyZoneHasSegments = device.Zones.Any(z => z.Segments.Length > 0);
|
||||
bool splitDeviceByZones = anyZoneHasSegments || PerZoneDeviceFlag.HasFlag(Helper.GetRgbNetDeviceType(device.Type));
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
|
||||
<DefineConstants>$(DefineConstants);TRACE;DEBUG</DefineConstants>
|
||||
<DefineConstants>TRACE;DEBUG</DefineConstants>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<Optimize>false</Optimize>
|
||||
</PropertyGroup>
|
||||
@@ -48,7 +48,7 @@
|
||||
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>$(NoWarn);CS1591;CS1572;CS1573</NoWarn>
|
||||
<DefineConstants>$(DefineConstants);RELEASE</DefineConstants>
|
||||
<DefineConstants>RELEASE</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=abstract/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=generic/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=perzone/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=perzone/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=segment/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
|
||||
Reference in new issue
Block a user