Skip to content

Commit 7af2cef

Browse files
committed
UI tweaks to hide GPU modes
1 parent 37a7af2 commit 7af2cef

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/AppConfig.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ public static bool IsAMDiGPU()
655655

656656
public static bool NoGpu()
657657
{
658-
return Is("no_gpu") || ContainsModel("UX540");
658+
return Is("no_gpu") || ContainsModel("UX540") || ContainsModel("UM560") || ContainsModel("GZ302");
659659
}
660660

661661
public static bool IsHardwareTouchpadToggle()

app/Settings.cs

+5
Original file line numberDiff line numberDiff line change
@@ -1463,6 +1463,11 @@ public async void RefreshSensors(bool force = false)
14631463
{
14641464
labelCPUFan.Text = "CPU" + cpuTemp + " " + HardwareControl.cpuFan;
14651465
labelGPUFan.Text = "GPU" + gpuTemp + " " + HardwareControl.gpuFan;
1466+
if (HardwareControl.gpuFan is not null && AppConfig.NoGpu())
1467+
{
1468+
labelMidFan.Text = "AUX " + HardwareControl.gpuFan;
1469+
}
1470+
14661471
if (HardwareControl.midFan is not null)
14671472
labelMidFan.Text = "Mid " + HardwareControl.midFan;
14681473

0 commit comments

Comments
 (0)