This commit is contained in:
Serge
2023-08-19 12:51:33 +02:00
parent 7c80a02cef
commit 984cb2f53e
4 changed files with 14 additions and 8 deletions

View File

@@ -996,7 +996,7 @@ namespace GHelper
menuUltimate.Visible = false;
}
public void HideGPUModes()
public void HideGPUModes(bool gpuExists)
{
isGpuSection = false;
@@ -1009,10 +1009,7 @@ namespace GHelper
SetContextMenu();
var gpuFan = Program.acpi.DeviceGet(AsusACPI.GPU_Fan);
Logger.WriteLine("GPU check:" + gpuFan);
if (HardwareControl.FormatFan(gpuFan) is null) panelGPU.Visible = false;
panelGPU.Visible = gpuExists;
}