@@ -120,7 +120,6 @@ def check_bootloader_unlocked(e):
120120 # toggleswitch to allow skipping flashing recovery
121121 def check_recovery_already_flashed (e ):
122122 """Enable skipping flashing recovery if selected."""
123-
124123 # manage the bootloader unlocking switch
125124 if self .bootloader_switch .value == False :
126125 self .state .steps = copy .deepcopy (self .state .config .unlock_bootloader )
@@ -136,7 +135,7 @@ def check_recovery_already_flashed(e):
136135 self .recovery_switch = Switch (
137136 label = "Custom recovery is already flashed." ,
138137 on_change = check_recovery_already_flashed ,
139- disabled = False ,
138+ disabled = True ,
140139 inactive_thumb_color = colors .YELLOW ,
141140 active_color = colors .GREEN ,
142141 )
@@ -206,8 +205,6 @@ def build(self):
206205If you don't know what this means, you most likely don't need to do anything and you can just continue.
207206 """
208207 ),
209- Row ([self .bootloader_switch , self .recovery_switch ]),
210- Divider (),
211208 self .device_infobox ,
212209 Row (
213210 [
@@ -223,6 +220,8 @@ def build(self):
223220 ],
224221 alignment = "center" ,
225222 ),
223+ Divider (),
224+ Row ([self .bootloader_switch , self .recovery_switch ]),
226225 ]
227226 )
228227 return self .view
@@ -278,6 +277,7 @@ def search_devices_clicked(self, e):
278277 if device_name :
279278 self .continue_button .disabled = False
280279 self .bootloader_switch .disabled = False
280+ self .recovery_switch .disabled = False
281281 # overwrite the text field with the real name from the config
282282 self .device_name .value = (
283283 f"{ device_name } (code: { self .state .config .device_code } )"
0 commit comments