File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 88
99using Monitorian . Core . Models ;
1010using Monitorian . Core . Models . Monitor ;
11- using Monitorian . Core . Models . Watcher ;
1211using Monitorian . Core . Views ;
1312using StartupAgency ;
1413
@@ -74,9 +73,7 @@ public static IEnumerable<string> EnumerateStandardOptions() =>
7473 StartupAgent . Options ,
7574 MonitorManager . Options ,
7675 LanguageService . Options ,
77- WindowPainter . Options ,
78- BrightnessConnector . Options ,
79- DisplayInformationWatcher . Options
76+ WindowPainter . Options
8077 }
8178 . SelectMany ( x => x ) ;
8279
Original file line number Diff line number Diff line change @@ -43,9 +43,12 @@ public BasicItem(
4343
4444 #endregion
4545
46- #region Preclusion/Preclearance
46+ #region Options
4747
48- public static IReadOnlyCollection < string > Options => new [ ] { PrecludeOption , PreclearOption } ;
48+ public static IReadOnlyCollection < string > Options => ( new [ ] { PrecludeOption , PreclearOption } )
49+ . Concat ( BrightnessConnector . Options )
50+ . Concat ( DisplayInformationWatcher . Options )
51+ . ToArray ( ) ;
4952
5053 private const string PrecludeOption = "/preclude" ;
5154 private const string PreclearOption = "/preclear" ;
Original file line number Diff line number Diff line change @@ -104,17 +104,17 @@ private static string FindFamilyName(string identityName)
104104 return package ? . Id . FamilyName ;
105105 }
106106
107- public virtual bool IsEnabled => _isSpecified && _isAvailable && ! string . IsNullOrEmpty ( _familyName . Value ) ;
108- private readonly bool _isSpecified ;
109- private bool _isAvailable = true ; // default
110-
111107 /// <summary>
112108 /// Options
113109 /// </summary>
114110 public static IReadOnlyCollection < string > Options => new [ ] { ConnectOption } ;
115111
116112 private const string ConnectOption = "/connect" ;
117113
114+ public virtual bool IsEnabled => _isSpecified && _isAvailable && ! string . IsNullOrEmpty ( _familyName . Value ) ;
115+ private readonly bool _isSpecified ;
116+ private bool _isAvailable = true ; // default
117+
118118 public BrightnessConnector ( )
119119 {
120120 _isSpecified = OsVersion . Is10OrGreater &&
You can’t perform that action at this time.
0 commit comments