@@ -107,24 +107,54 @@ and make it a more stable product.
107107 action : this . update . bind ( this )
108108 }
109109
110+ autoCheckUpdatesOption : CheckboxOption = {
111+ type : 'checkbox' ,
112+ value : false ,
113+ label : 'Check Automatically' ,
114+ toggled : doAutoCheckUpdates => {
115+ this . settingsService . setDoAutoCheckUpdates ( {
116+ doAutoCheckUpdates
117+ } )
118+ }
119+ }
120+
121+ otaUpdatesOption : CheckboxOption = {
122+ type : 'checkbox' ,
123+ value : false ,
124+ label : 'OTA User Interface Updates' ,
125+ toggled : doOTAUpdates => {
126+ this . settingsService . setDoOTAUpdates ( {
127+ doOTAUpdates
128+ } )
129+ }
130+ }
131+
110132 settings : Options = [
133+ [ { type : 'label' , label : 'Settings' } ] ,
134+ [ this . iconModeOption ] ,
111135 [
112- this . iconModeOption
113- ] ,
114- [
115- this . updateOption ,
116- this . uninstallOption
136+ this . replaceKnobsWithSlidersOption ,
137+ this . launchOnStartupOption
117138 ] ,
118139
140+ [ { type : 'divider' , orientation : 'horizontal' } ] ,
141+
142+ [ { type : 'label' , label : 'Updates' } ] ,
119143 [
120- this . replaceKnobsWithSlidersOption ,
121- this . launchOnStartupOption
144+ this . updateOption
122145 ] ,
146+
123147 [ { type : 'divider' , orientation : 'horizontal' } ] ,
148+
149+ // Privacy
124150 [ { type : 'label' , label : 'Privacy' } ] ,
125151 [
126152 this . doCollectTelemetryOption
127- ]
153+ ] ,
154+
155+ [ { type : 'divider' , orientation : 'horizontal' } ] ,
156+ // Misc
157+ [ this . uninstallOption ]
128158 ]
129159
130160 constructor (
@@ -163,10 +193,30 @@ and make it a more stable product.
163193 this . replaceKnobsWithSlidersOption . value = UISettings . replaceKnobsWithSliders
164194 this . doCollectTelemetryOption . value = UISettings . doCollectTelemetry
165195
166- // Crash report consent was only available from v1.1.0
196+ // Some settings that are only available from v1.1.0
167197 if ( new SemanticVersion ( info . version ) . isGreaterThanOrEqualTo ( '1.1.0' ) ) {
168- this . doCollectCrashReportsOption . value = await this . settingsService . getDoCollectCrashReports ( )
169- this . settings . push ( [
198+ const [
199+ doCollectCrashReports ,
200+ doAutoCheckUpdates ,
201+ doOTAUpdates
202+ ] = await Promise . all ( [
203+ this . settingsService . getDoCollectCrashReports ( ) ,
204+ this . settingsService . getDoAutoCheckUpdates ( ) ,
205+ this . settingsService . getDoOTAUpdates ( )
206+ ] )
207+
208+ this . doCollectCrashReportsOption . value = doCollectCrashReports
209+ this . autoCheckUpdatesOption . value = doAutoCheckUpdates
210+ this . otaUpdatesOption . value = doOTAUpdates
211+
212+ // Add Update options
213+ this . settings . splice ( this . settings . length - 6 , 0 , [
214+ this . autoCheckUpdatesOption ,
215+ this . otaUpdatesOption
216+ ] )
217+
218+ // Add Privacy option
219+ this . settings . splice ( this . settings . length - 2 , 0 , [
170220 this . doCollectCrashReportsOption
171221 ] )
172222 }
0 commit comments