From 6b97bc1eaffc34c95b82f2b8161576e84deae395 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Tue, 3 Sep 2024 20:23:46 +0200 Subject: [PATCH] Fixed Slash lighting behavior for lid close https://github.com/seerge/g-helper/issues/3054 --- app/AnimeMatrix/AniMatrixControl.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/AnimeMatrix/AniMatrixControl.cs b/app/AnimeMatrix/AniMatrixControl.cs index f4e09753..3c897461 100644 --- a/app/AnimeMatrix/AniMatrixControl.cs +++ b/app/AnimeMatrix/AniMatrixControl.cs @@ -111,6 +111,8 @@ namespace GHelper.AnimeMatrix deviceSlash.SetEnabled(true); deviceSlash.Init(); + deviceSlash.SetLidMode(false); + switch ((SlashMode)running) { case SlashMode.Static: @@ -148,11 +150,6 @@ namespace GHelper.AnimeMatrix { bool matrixLid = AppConfig.Is("matrix_lid"); - if (deviceSlash is not null) - { - deviceSlash.SetLidMode(true); - } - if (matrixLid || force) { Logger.WriteLine($"Matrix LidClosed: {lidClose}");