Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
Valkirie committed Dec 26, 2024
1 parent 95acf4b commit 85a4838
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions HandheldCompanion/Managers/DynamicLightingManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,8 @@ private static bool GetAmbientLightingEnabled()
private static void SetAmbientLightingEnabled(bool enabled)
{
using (RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Lighting", writable: true))
{
if (key != null)
{
// disable
key.SetValue(OSAmbientLightingEnabledKey, enabled ? 1 : 0);
}
}
}

private static void MultimediaManager_DisplaySettingsChanged(DesktopScreen desktopScreen, ScreenResolution resolution)
Expand Down

0 comments on commit 85a4838

Please sign in to comment.