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:
@@ -16,7 +16,7 @@
|
|||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
|
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
|
||||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||||
<AssemblyVersion>0.69</AssemblyVersion>
|
<AssemblyVersion>0.70</AssemblyVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
|||||||
2
app/Settings.Designer.cs
generated
2
app/Settings.Designer.cs
generated
@@ -255,7 +255,7 @@ namespace GHelper
|
|||||||
//
|
//
|
||||||
sliderBattery.Location = new Point(16, 70);
|
sliderBattery.Location = new Point(16, 70);
|
||||||
sliderBattery.Max = 100;
|
sliderBattery.Max = 100;
|
||||||
sliderBattery.Min = 50;
|
sliderBattery.Min = 40;
|
||||||
sliderBattery.Name = "sliderBattery";
|
sliderBattery.Name = "sliderBattery";
|
||||||
sliderBattery.Size = new Size(772, 40);
|
sliderBattery.Size = new Size(772, 40);
|
||||||
sliderBattery.TabIndex = 39;
|
sliderBattery.TabIndex = 39;
|
||||||
|
|||||||
@@ -953,10 +953,11 @@ namespace GHelper
|
|||||||
labelBattery.Text = battery;
|
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"
|
Program.trayIcon.Text = trayTip;
|
||||||
+ "GPU" + gpuTemp + HardwareControl.gpuFan +
|
|
||||||
((battery.Length > 0) ? ("\n" + battery) : "");
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1433,7 +1434,11 @@ namespace GHelper
|
|||||||
|
|
||||||
UltimateUI(mux == 1);
|
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