mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Hide GPU fans from UI if they don't exist in system
This commit is contained in:
@@ -953,10 +953,11 @@ namespace GHelper
|
||||
labelBattery.Text = battery;
|
||||
});
|
||||
|
||||
string trayTip = "CPU" + cpuTemp + HardwareControl.cpuFan;
|
||||
if (gpuTemp.Length > 0) trayTip += "\nGPU" + gpuTemp + HardwareControl.gpuFan;
|
||||
if (battery.Length > 0) trayTip += "\n" + battery;
|
||||
|
||||
Program.trayIcon.Text = "CPU" + cpuTemp + HardwareControl.cpuFan + "\n"
|
||||
+ "GPU" + gpuTemp + HardwareControl.gpuFan +
|
||||
((battery.Length > 0) ? ("\n" + battery) : "");
|
||||
Program.trayIcon.Text = trayTip;
|
||||
|
||||
}
|
||||
|
||||
@@ -1432,8 +1433,12 @@ namespace GHelper
|
||||
GpuMode = AsusACPI.GPUModeStandard;
|
||||
|
||||
UltimateUI(mux == 1);
|
||||
|
||||
if (eco < 0) tableGPU.Visible = false;
|
||||
|
||||
if (eco < 0)
|
||||
{
|
||||
tableGPU.Visible = false;
|
||||
if (Program.acpi.DeviceGet(AsusACPI.GPU_Fan) < 0 ) panelGPU.Visible = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user