From a9a421dacee6bc67a5e927a35d458aafefd5026f Mon Sep 17 00:00:00 2001 From: Tobias Sterbak Date: Mon, 27 Mar 2023 11:43:02 +0200 Subject: [PATCH] If there are not instructions to unlock the bootloader, assume that there is nothing to do and toggle the switch by default --- openandroidinstaller/views/start_view.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openandroidinstaller/views/start_view.py b/openandroidinstaller/views/start_view.py index 31c2d85f..e1927816 100644 --- a/openandroidinstaller/views/start_view.py +++ b/openandroidinstaller/views/start_view.py @@ -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}.")