mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Disable Visual Modes when HDR is acrtive https://github.com/seerge/g-helper/issues/2301
This commit is contained in:
@@ -46,9 +46,12 @@ namespace GHelper.Display
|
||||
if (overdrive >= 0)
|
||||
{
|
||||
if (AppConfig.IsNoOverdrive()) overdrive = 0;
|
||||
if (!AppConfig.IsOLED()) Program.acpi.DeviceSet(AsusACPI.ScreenOverdrive, overdrive, "ScreenOverdrive");
|
||||
if (!AppConfig.IsOLED() && overdrive != Program.acpi.DeviceGet(AsusACPI.ScreenOverdrive))
|
||||
{
|
||||
Program.acpi.DeviceSet(AsusACPI.ScreenOverdrive, overdrive, "ScreenOverdrive");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if (miniled >= 0)
|
||||
{
|
||||
@@ -112,9 +115,10 @@ namespace GHelper.Display
|
||||
{
|
||||
Logger.WriteLine($"Miniled: {miniled1} {miniled2}");
|
||||
AppConfig.Set("miniled", miniled);
|
||||
hdr = ScreenCCD.GetHDRStatus();
|
||||
}
|
||||
|
||||
hdr = ScreenCCD.GetHDRStatus();
|
||||
|
||||
bool screenEnabled = (frequency >= 0);
|
||||
|
||||
AppConfig.Set("frequency", frequency);
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
|
||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||
<AssemblyVersion>0.162</AssemblyVersion>
|
||||
<AssemblyVersion>0.163</AssemblyVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
|
||||
634
app/Settings.Designer.cs
generated
634
app/Settings.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@@ -1203,6 +1203,9 @@ namespace GHelper
|
||||
buttonMiniled.Visible = false;
|
||||
}
|
||||
|
||||
tableVisual.Visible = !hdr;
|
||||
labelVisual.Visible = hdr;
|
||||
|
||||
}
|
||||
|
||||
private void ButtonQuit_Click(object? sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user