mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Limit Dynamic Lighting check only for win 11 https://github.com/seerge/g-helper/issues/2966
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user