mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Status LED toggle for supported models https://github.com/seerge/g-helper/discussions/2303
This commit is contained in:
10
app/Extra.cs
10
app/Extra.cs
@@ -127,6 +127,7 @@ namespace GHelper
|
||||
checkBoot.Text = Properties.Strings.Boot;
|
||||
checkShutdown.Text = Properties.Strings.Shutdown;
|
||||
checkBootSound.Text = Properties.Strings.BootSound;
|
||||
checkStatusLed.Text = Properties.Strings.LEDStatusIndicators;
|
||||
|
||||
labelSpeed.Text = Properties.Strings.AnimationSpeed;
|
||||
//labelBrightness.Text = Properties.Strings.Brightness;
|
||||
@@ -403,6 +404,10 @@ namespace GHelper
|
||||
checkBootSound.Checked = (Program.acpi.DeviceGet(AsusACPI.BootSound) == 1);
|
||||
checkBootSound.CheckedChanged += CheckBootSound_CheckedChanged;
|
||||
|
||||
checkStatusLed.Checked = (Program.acpi.DeviceGet(AsusACPI.StatusLed) > 0);
|
||||
checkStatusLed.CheckedChanged += CheckLEDStatus_CheckedChanged; ;
|
||||
|
||||
|
||||
checkBWIcon.Checked = AppConfig.IsBWIcon();
|
||||
checkBWIcon.CheckedChanged += CheckBWIcon_CheckedChanged;
|
||||
|
||||
@@ -426,6 +431,11 @@ namespace GHelper
|
||||
|
||||
}
|
||||
|
||||
private void CheckLEDStatus_CheckedChanged(object? sender, EventArgs e)
|
||||
{
|
||||
Program.acpi.DeviceSet(AsusACPI.StatusLed, (checkStatusLed.Checked ? 7 : 0), "StatusLED");
|
||||
}
|
||||
|
||||
private void CheckBWIcon_CheckedChanged(object? sender, EventArgs e)
|
||||
{
|
||||
AppConfig.Set("bw_icon", (checkBWIcon.Checked ? 1 : 0));
|
||||
|
||||
Reference in New Issue
Block a user