Skip to content

Commit

Permalink
Limit Dynamic Lighting check only for win 11 #2966
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Aug 12, 2024
1 parent c16dfe2 commit 0deccfa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Helpers/DynamicLightingHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ public static class DynamicLightingHelper

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");

Expand Down

0 comments on commit 0deccfa

Please sign in to comment.