Skip to content

Commit

Permalink
Fix fastboot issue and clear error text at the right time
Browse files Browse the repository at this point in the history
  • Loading branch information
tsterbak committed Feb 9, 2023
1 parent b02c621 commit 3865d8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions openandroidinstaller/tooling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down
2 changes: 2 additions & 0 deletions openandroidinstaller/views/step_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3865d8f

Please sign in to comment.