From 3865d8ff9d9847b1b560d26bd334a42c091c63eb Mon Sep 17 00:00:00 2001 From: Tobias Sterbak Date: Thu, 9 Feb 2023 15:16:53 +0000 Subject: [PATCH] Fix fastboot issue and clear error text at the right time --- openandroidinstaller/tooling.py | 1 + openandroidinstaller/views/step_view.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/openandroidinstaller/tooling.py b/openandroidinstaller/tooling.py index 2192cc1a..04199322 100644 --- a/openandroidinstaller/tooling.py +++ b/openandroidinstaller/tooling.py @@ -102,6 +102,7 @@ def adb_reboot_bootloader(bin_path: Path) -> Union[str, bool]: """Reboot the device into bootloader and return success.""" for line in run_command("adb reboot bootloader", bin_path): yield line + sleep(1) @add_logging("Rebooting device into download mode with adb.") diff --git a/openandroidinstaller/views/step_view.py b/openandroidinstaller/views/step_view.py index 95edb908..e9557ef4 100644 --- a/openandroidinstaller/views/step_view.py +++ b/openandroidinstaller/views/step_view.py @@ -195,6 +195,8 @@ def call_to_phone(self, e, command: str): Some parts of the command are changed by placeholders. """ + # clean the previous error display + self.error_text.value = "" # disable the call button while the command is running self.call_button.disabled = True # reset the progress indicators