Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesCJ60 committed Aug 9, 2023
1 parent 1ccaf2d commit bc8c46b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ private void Timer_Tick(object sender, EventArgs e)
bool setFPS = false;
bool setFan = false;
string lastFan = "";
int perfMode = -1;
private async void ApplySettings()
{
try
Expand Down Expand Up @@ -345,7 +346,7 @@ await Task.Run(() =>
Fan_Control.UpdateFanCurve(speeds);
Fan_Control.enableFanControl();
}
else if (Settings.Default.isASUS && lastFan != Settings.Default.fanCurve)
else if (Settings.Default.isASUS && lastFan != Settings.Default.fanCurve || Settings.Default.isASUS && perfMode != Settings.Default.acMode)
{
string speedString = Settings.Default.fanCurve;
string[] speedStringArray = speedString.Split('-');
Expand Down Expand Up @@ -375,6 +376,7 @@ await Task.Run(() =>
App.wmi.SetFanCurve(1, curve);
lastFan = speedString;
perfMode = Settings.Default.acMode;
}
}
else if (setFan) Fan_Control.disableFanControl();
Expand Down

0 comments on commit bc8c46b

Please # to comment.