Skip to content

Commit 3865d8f

Browse files
committed
Fix fastboot issue and clear error text at the right time
1 parent b02c621 commit 3865d8f

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

openandroidinstaller/tooling.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def adb_reboot_bootloader(bin_path: Path) -> Union[str, bool]:
102102
"""Reboot the device into bootloader and return success."""
103103
for line in run_command("adb reboot bootloader", bin_path):
104104
yield line
105+
sleep(1)
105106

106107

107108
@add_logging("Rebooting device into download mode with adb.")

openandroidinstaller/views/step_view.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ def call_to_phone(self, e, command: str):
195195
196196
Some parts of the command are changed by placeholders.
197197
"""
198+
# clean the previous error display
199+
self.error_text.value = ""
198200
# disable the call button while the command is running
199201
self.call_button.disabled = True
200202
# reset the progress indicators

0 commit comments

Comments
 (0)