Skip to content

Commit

Permalink
YeeLight is now disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
snake-4 committed May 13, 2020
1 parent 4151552 commit c29564a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Project-Aurora/Project-Aurora/Settings/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Type> devices_disabled;
public bool OverlaysInPreview;

Expand Down Expand Up @@ -587,9 +587,10 @@ public Configuration()
/// Called after the configuration file has been deserialized or created for the first time.
/// </summary>
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)));
Expand Down

0 comments on commit c29564a

Please sign in to comment.