From af7823ffe9492f29eb3839df8ee6c6a696fae760 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Wed, 27 Mar 2024 11:43:41 +0100 Subject: [PATCH] Status led fix https://github.com/seerge/g-helper/discussions/2303#discussioncomment-8926558 --- app/Extra.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Extra.cs b/app/Extra.cs index 9091b0c2..edd25b9f 100644 --- a/app/Extra.cs +++ b/app/Extra.cs @@ -404,7 +404,9 @@ namespace GHelper checkBootSound.Checked = (Program.acpi.DeviceGet(AsusACPI.BootSound) == 1); checkBootSound.CheckedChanged += CheckBootSound_CheckedChanged; - checkStatusLed.Checked = (Program.acpi.DeviceGet(AsusACPI.StatusLed) > 0); + var statusLed = Program.acpi.DeviceGet(AsusACPI.StatusLed); + checkStatusLed.Visible = statusLed >= 0; + checkStatusLed.Checked = (statusLed > 0); checkStatusLed.CheckedChanged += CheckLEDStatus_CheckedChanged; ;