Minor fixes

This commit is contained in:
seerge
2023-03-13 20:25:35 +01:00
parent a211dd412f
commit 223ead2f4e
2 changed files with 9 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net7.0-windows10.0.17763.0</TargetFramework>
<TargetFramework>net7.0-windows8.0</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>True</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
@@ -11,7 +11,7 @@
<StartupObject>GHelper.Program</StartupObject>
<ApplicationIcon>favicon.ico</ApplicationIcon>
<Platforms>AnyCPU;x64</Platforms>
<SupportedOSPlatformVersion>10.0.17763.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion>8.0</SupportedOSPlatformVersion>
<AssemblyName>GHelper</AssemblyName>
<PlatformTarget>x64</PlatformTarget>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>

View File

@@ -541,8 +541,12 @@ namespace GHelper
{
int currentFrequency = NativeMethods.GetRefreshRate();
if (currentFrequency < 0) // Laptop screen not detected or has unknown refresh rate
if (currentFrequency < 0) // Laptop screen not detected or has unknown refresh rate
{
InitScreen();
return;
}
if (frequency >= 1000)
{
@@ -717,7 +721,7 @@ namespace GHelper
aTimer.Interval = 300;
aTimer.Enabled = true;
RefreshSensors();
//RefreshSensors();
}
else
{
@@ -1030,7 +1034,7 @@ namespace GHelper
break;
default:
buttonStandard.FlatAppearance.BorderSize = buttonActive;
labelGPU.Text = "GPU Mode: iGPU and dGPU";
labelGPU.Text = "GPU Mode: iGPU + dGPU";
Program.trayIcon.Icon = GHelper.Properties.Resources.standard;
break;
}