This commit is contained in:
seerge
2023-04-05 13:02:02 +02:00
parent 0605e63433
commit 8d119b386d
2 changed files with 12 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ public static class HardwareMonitor
public static int GetFanMax()
{
int max = 58;
if (Program.config.ContainsModel("402")) max = 72;
if (Program.config.ContainsModel("401")) max = 72;
else if (Program.config.ContainsModel("503")) max = 68;
return Math.Max(max, Program.config.getConfig("fan_max"));
}

View File

@@ -1,4 +1,5 @@
using CustomControls;
using Microsoft.Win32;
namespace GHelper
{
@@ -98,6 +99,16 @@ namespace GHelper
private void CheckKeyboardAuto_CheckedChanged(object? sender, EventArgs e)
{
Program.config.setConfig("keyboard_auto", (checkKeyboardAuto.Checked ? 1 : 0));
/*
RegistryKey myKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\ASUS\\ASUS System Control Interface\\AsusOptimization\\ASUS Keyboard Hotkeys", true);
if (myKey != null)
{
myKey.SetValue("TurnOffKeybdLight", 30, RegistryValueKind.DWord);
myKey.Close();
}
*/
}
private void CheckTopmost_CheckedChanged(object? sender, EventArgs e)