Skip to content

Commit 93d8711

Browse files
committed
Fix advnaced toggle in install views; fix wiping partitions
1 parent 2544e39 commit 93d8711

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

openandroidinstaller/tooling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def adb_twrp_format_data(bin_path: Path):
158158
@add_logging("Wipe the selected partition with adb and twrp.", return_if_fail=True)
159159
def adb_twrp_wipe_partition(bin_path: Path, partition: str):
160160
"""Perform a factory reset with twrp and adb."""
161-
for line in run_command("adb shell twrp wipe {partition}", bin_path):
161+
for line in run_command(f"adb shell twrp wipe {partition}", bin_path):
162162
yield line
163163

164164

openandroidinstaller/views/install_addons_view.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def check_advanced_switch(e):
6363
logger.info("Disable advanced output.")
6464
self.state.advanced = False
6565
self.terminal_box.toggle_visibility()
66+
self.right_view.update()
6667

6768
self.advanced_switch = Switch(
6869
label="Advanced output",

openandroidinstaller/views/install_view.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def check_advanced_switch(e):
6363
logger.info("Disable advanced output.")
6464
self.state.advanced = False
6565
self.terminal_box.toggle_visibility()
66+
self.right_view.update()
6667

6768
self.advanced_switch = Switch(
6869
label="Advanced output",

0 commit comments

Comments
 (0)