This commit is contained in:
Serge
2024-03-27 09:58:52 +01:00
parent 8daa990b5d
commit 41b6955906
5 changed files with 66 additions and 26 deletions

View File

@@ -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));