Skip to content

Commit

Permalink
Fix advnaced toggle in install views; fix wiping partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
tsterbak committed Feb 9, 2023
1 parent 2544e39 commit 93d8711
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion openandroidinstaller/tooling.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def adb_twrp_format_data(bin_path: Path):
@add_logging("Wipe the selected partition with adb and twrp.", return_if_fail=True)
def adb_twrp_wipe_partition(bin_path: Path, partition: str):
"""Perform a factory reset with twrp and adb."""
for line in run_command("adb shell twrp wipe {partition}", bin_path):
for line in run_command(f"adb shell twrp wipe {partition}", bin_path):
yield line


Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/views/install_addons_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def check_advanced_switch(e):
logger.info("Disable advanced output.")
self.state.advanced = False
self.terminal_box.toggle_visibility()
self.right_view.update()

self.advanced_switch = Switch(
label="Advanced output",
Expand Down
1 change: 1 addition & 0 deletions openandroidinstaller/views/install_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def check_advanced_switch(e):
logger.info("Disable advanced output.")
self.state.advanced = False
self.terminal_box.toggle_visibility()
self.right_view.update()

self.advanced_switch = Switch(
label="Advanced output",
Expand Down

0 comments on commit 93d8711

Please sign in to comment.