Limit Dynamic Lighting check only for win 11 https://github.com/seerge/g-helper/issues/2966

This commit is contained in:
Serge
2024-08-12 14:22:00 +02:00
parent c16dfe207f
commit 0deccfa47a

View File

@@ -7,6 +7,8 @@ namespace GHelper.Helpers
public static bool IsEnabled()
{
if (Environment.OSVersion.Version.Build < 22000) return false;
using var key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Lighting");
var registryValueObject = key?.GetValue("AmbientLightingEnabled");