Skip to content

Commit ca0ae9f

Browse files
committed
Allow selecting 'bootloader already unlocked' only if a config is detected
1 parent c14e04a commit ca0ae9f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

openandroidinstaller/openandroidinstaller.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def check_bootloader_unlocked(e):
115115
self.state.num_total_steps = len(self.state.steps)
116116

117117
self.bootloader_checkbox = Checkbox(
118-
label="Bootlaoder is already unlocked.", on_change=check_bootloader_unlocked
118+
label="Bootlaoder is already unlocked.", on_change=check_bootloader_unlocked, disabled=True
119119
)
120120

121121
# build up the main view
@@ -211,6 +211,7 @@ def search_devices(self, e):
211211
if device_name:
212212
self.config_found_box.value = True
213213
self.continue_button.disabled = False
214+
self.bootloader_checkbox.disabled = False
214215
# overwrite the text field with the real name from the config
215216
self.device_name.value = f"{device_name} (code: {device_code})"
216217
else:

0 commit comments

Comments
 (0)