Skip to content

Commit

Permalink
Merge branch 'seerge:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
HamzaYslmn authored Apr 5, 2023
2 parents 7407b0d + 8d119b3 commit 91965ed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/HardwareMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
Expand Down
11 changes: 11 additions & 0 deletions app/Keyboard.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using CustomControls;
using Microsoft.Win32;

namespace GHelper
{
Expand Down Expand Up @@ -98,6 +99,16 @@ private void CheckNoOverdrive_CheckedChanged(object? sender, EventArgs e)
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)
Expand Down

0 comments on commit 91965ed

Please sign in to comment.