Skip to content

Commit

Permalink
If there are not instructions to unlock the bootloader, assume that t…
Browse files Browse the repository at this point in the history
…here is nothing to do and toggle the switch by default
  • Loading branch information
tsterbak committed Mar 27, 2023
1 parent 150700d commit a9a421d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openandroidinstaller/views/start_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ def search_devices(self, e):
f"{device_name} (code: {self.state.config.device_code})"
)
self.device_name.color = colors.GREEN
# if there are no steps for bootloader unlocking, assume there is nothing to do and toggle the switch
self.bootloader_switch.value = True
else:
# failed to load config
logger.error(f"Failed to load config for {device_code}.")
Expand Down

0 comments on commit a9a421d

Please sign in to comment.