Skip to content

Commit c985726

Browse files
committed
Fix unlock bootloader toggle when no instructions in cofnig
1 parent 6e5e2e7 commit c985726

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openandroidinstaller/views/start_view.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ def search_devices(self, e):
255255
)
256256
self.device_name.color = colors.GREEN
257257
# if there are no steps for bootloader unlocking, assume there is nothing to do and toggle the switch
258-
self.bootloader_switch.value = True
258+
if len(self.state.config.unlock_bootloader) == 0:
259+
self.bootloader_switch.value = True
259260
else:
260261
# failed to load config
261262
logger.error(f"Failed to load config for {device_code}.")

0 commit comments

Comments
 (0)