From c29564a50e9d3df7e74d02243e01d99a3fb2bed7 Mon Sep 17 00:00:00 2001 From: SnakePin <18491360+SnakePin@users.noreply.github.com> Date: Thu, 14 May 2020 02:50:41 +0300 Subject: [PATCH] YeeLight is now disabled by default --- Project-Aurora/Project-Aurora/Settings/Configuration.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Project-Aurora/Project-Aurora/Settings/Configuration.cs b/Project-Aurora/Project-Aurora/Settings/Configuration.cs index 536027560..4590d7a7b 100755 --- a/Project-Aurora/Project-Aurora/Settings/Configuration.cs +++ b/Project-Aurora/Project-Aurora/Settings/Configuration.cs @@ -463,7 +463,7 @@ public class Configuration : INotifyPropertyChanged public bool devices_disable_keyboard; public bool devices_disable_mouse; public bool devices_disable_headset; - public bool unified_hid_disabled = false; + public bool devices_disabled_by_default = false; public HashSet devices_disabled; public bool OverlaysInPreview; @@ -587,9 +587,10 @@ public Configuration() /// Called after the configuration file has been deserialized or created for the first time. /// public void OnPostLoad() { - if (!unified_hid_disabled) { + if (!devices_disabled_by_default) { devices_disabled.Add(typeof(Devices.UnifiedHID.UnifiedHIDDevice)); - unified_hid_disabled = true; + devices_disabled.Add(typeof(Devices.YeeLight.YeeLightDevice)); + devices_disabled_by_default = true; } EvaluatableTemplates.CollectionChanged += (sender, e) => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(EvaluatableTemplates)));