Skip to content

Commit a9a421d

Browse files
committed
If there are not instructions to unlock the bootloader, assume that there is nothing to do and toggle the switch by default
1 parent 150700d commit a9a421d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

openandroidinstaller/views/start_view.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ def search_devices(self, e):
259259
f"{device_name} (code: {self.state.config.device_code})"
260260
)
261261
self.device_name.color = colors.GREEN
262+
# if there are no steps for bootloader unlocking, assume there is nothing to do and toggle the switch
263+
self.bootloader_switch.value = True
262264
else:
263265
# failed to load config
264266
logger.error(f"Failed to load config for {device_code}.")

0 commit comments

Comments
 (0)