Skip to content

Commit ca32f89

Browse files
committed
Merge branch 'hotfix-customeffects'
2 parents f5b62ea + 85e8628 commit ca32f89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Corale.Colore/Core/Keyboard.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ namespace Corale.Colore.Core
3232
{
3333
using System;
3434
using System.Collections.Generic;
35+
using System.Linq;
3536

3637
using Corale.Colore.Annotations;
3738
using Corale.Colore.Razer.Keyboard;
@@ -73,7 +74,7 @@ private Keyboard()
7374
CurrentEffectId = Guid.Empty;
7475

7576
// Initialize the color array
76-
var names = Enum.GetNames(typeof(Key));
77+
var names = Enum.GetNames(typeof(Key)).Where(n => n != "Invalid").ToArray();
7778
_custom = new Custom[names.Length];
7879
_keyIndexMapping = new Dictionary<Key, int>(names.Length);
7980

0 commit comments

Comments
 (0)