UV/Temp reset fix

This commit is contained in:
Serge
2023-06-18 15:23:29 +02:00
parent 2c2eed4fe2
commit 40be93b60d

View File

@@ -273,8 +273,7 @@ namespace GHelper
} }
private void AdvancedScroll()
private void TrackUV_Scroll(object? sender, EventArgs e)
{ {
AppConfig.SetMode("auto_uv", 0); AppConfig.SetMode("auto_uv", 0);
checkApplyUV.Enabled = checkApplyUV.Checked = false; checkApplyUV.Enabled = checkApplyUV.Checked = false;
@@ -286,7 +285,12 @@ namespace GHelper
AppConfig.SetMode("cpu_temp", trackTemp.Value); AppConfig.SetMode("cpu_temp", trackTemp.Value);
AppConfig.SetMode("cpu_uv", trackUV.Value); AppConfig.SetMode("cpu_uv", trackUV.Value);
AppConfig.SetMode("igpu_uv", trackUViGPU.Value); AppConfig.SetMode("igpu_uv", trackUViGPU.Value);
}
private void TrackUV_Scroll(object? sender, EventArgs e)
{
AdvancedScroll();
} }
private void ComboModes_KeyPress(object? sender, KeyPressEventArgs e) private void ComboModes_KeyPress(object? sender, KeyPressEventArgs e)
@@ -828,8 +832,10 @@ namespace GHelper
trackUV.Value = 0; trackUV.Value = 0;
trackUViGPU.Value = 0; trackUViGPU.Value = 0;
AppConfig.SetMode("cpu_uv", 0); trackTemp.Value = 96;
AppConfig.SetMode("igpu_uv", 0);
AdvancedScroll();
AppConfig.SetMode("cpu_temp", 0);
if (gpuVisible) if (gpuVisible)
{ {