Skip to content

Commit

Permalink
Fix unlock bootloader toggle when no instructions in cofnig
Browse files Browse the repository at this point in the history
  • Loading branch information
tsterbak committed Mar 27, 2023
1 parent 6e5e2e7 commit c985726
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openandroidinstaller/views/start_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ def search_devices(self, e):
)
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
if len(self.state.config.unlock_bootloader) == 0:
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 c985726

Please sign in to comment.