mirror of
https://github.com/Maassoft/ColorControl.git
synced 2026-10-18 23:07:15 -05:00
fix some final issues
This commit is contained in:
1 parent
4ed670c01b
commit
18f32e1d46
3 files changed
+8
-8
No files matched your search
@@ -150,13 +150,10 @@
|
||||
|
||||
protected async Task LoadDriverSettings()
|
||||
{
|
||||
if (DriverSettings == null)
|
||||
DriverSettings = await _rpcClientService.CallAsync<List<NvSettingItemDto>>("NvService", "GetDriverSettings", CurrentProfileName);
|
||||
if (DriverSettings != null)
|
||||
{
|
||||
DriverSettings = await _rpcClientService.CallAsync<List<NvSettingItemDto>>("NvService", "GetDriverSettings", CurrentProfileName);
|
||||
if (DriverSettings != null)
|
||||
{
|
||||
DriverSettings.ForEach(s => s.ValueChanged = false);
|
||||
}
|
||||
DriverSettings.ForEach(s => s.ValueChanged = false);
|
||||
}
|
||||
|
||||
if (DriverSettings != null)
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using System.ComponentModel;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace ColorControl.Shared.Contracts.NVIDIA
|
||||
{
|
||||
public enum NvOutputMode
|
||||
{
|
||||
Default = 0,
|
||||
[Description("HDR10")]
|
||||
Hdr10 = 1,
|
||||
[Description("HDR10+")]
|
||||
Hdr10Plus = 2
|
||||
}
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ namespace ColorControl.Shared.Contracts.NVIDIA
|
||||
|
||||
applyColorData = keepChanges && applyColorData || colorData.IsDifferent(currentSettings.colorData);
|
||||
applyDithering = keepChanges && applyDithering || (ditheringEnabled != currentSettings.ditheringEnabled || ditheringMode != currentSettings.ditheringMode || ditheringBits != currentSettings.ditheringBits);
|
||||
applyHDR = keepChanges && applyHDR || (HDREnabled != currentSettings.HDREnabled || toggleHDR || SDRBrightness != currentSettings.SDRBrightness);
|
||||
applyHDR = keepChanges && applyHDR || (HDREnabled != currentSettings.HDREnabled || toggleHDR || SDRBrightness != currentSettings.SDRBrightness || HdrSettings.OutputMode != currentSettings.HdrSettings.OutputMode);
|
||||
DisplayConfig.ApplyResolution = keepChanges && DisplayConfig.ApplyResolution || (DisplayConfig.Resolution.IsDifferent(currentSettings.DisplayConfig.Resolution) ||
|
||||
DisplayConfig.Scaling != currentSettings.DisplayConfig.Scaling || DisplayConfig.Rotation != currentSettings.DisplayConfig.Rotation || DisplayConfig.IsPrimary != null && DisplayConfig.IsPrimary != currentSettings.DisplayConfig.IsPrimary);
|
||||
DisplayConfig.ApplyRefreshRate = keepChanges && DisplayConfig.ApplyRefreshRate || !DisplayConfig.RefreshRate.Equals(currentSettings.DisplayConfig.RefreshRate);
|
||||
|
||||
Reference in new issue
Block a user