From f5c1236de2a734d21de78eb14157b788fe067b78 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Thu, 27 Apr 2023 12:28:17 +0800 Subject: [PATCH] Fix typos Found via `codespell` and `typos --format brief` --- README.md | 2 +- openandroidinstaller/tooling.py | 2 +- openandroidinstaller/views/install_addons_view.py | 2 +- openandroidinstaller/views/install_view.py | 2 +- openandroidinstaller/views/step_view.py | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 15c5963b..62f651be 100644 --- a/README.md +++ b/README.md @@ -215,7 +215,7 @@ Every step in the config file corresponds to one view in the application. These - `call_button`: Display the content text and a button that runs a given command. After the command is run, a confirm button is displayed to allow the user to move to the next step. - `call_button_with_input`: Display the content text, an input field and a button that runs a given command. The inputtext, can be used in the command by using the `` placeholder in the command field. After the command is run, a confirm button is displayed to allow the user to move to the next step. - `link_button_with_confirm`: Display a button that opens a browser with a given link, confirm afterwards. Link is given in `link`. -- `content`: str; The content text displayed alongside the action of the step. Used to inform the user about whats going on. +- `content`: str; The content text displayed alongside the action of the step. Used to inform the user about what's going on. - `command`: [ONLY for call_button* steps] str; The command to run. One of `adb_reboot`, `adb_reboot_bootloader`, `adb_reboot_download`, `adb_sideload`, `adb_twrp_wipe_and_install`, `adb_twrp_copy_partitions`, `fastboot_boot_recovery`, `fastboot_unlock_with_code`, `fastboot_unlock`, `fastboot_oem_unlock`, `fastboot_get_unlock_data`, `fastboot_reboot`, `heimdall_flash_recovery`. - `img`: [OPTIONAL] Display an image on the left pane of the step view. Images are loaded from `openandroidinstaller/assets/imgs/`. - `allow_skip`: [OPTIONAL] boolean; If a skip button should be displayed to allow skipping this step. Can be useful when the bootloader is already unlocked. diff --git a/openandroidinstaller/tooling.py b/openandroidinstaller/tooling.py index c8b95dfd..cf82e7a6 100644 --- a/openandroidinstaller/tooling.py +++ b/openandroidinstaller/tooling.py @@ -85,7 +85,7 @@ def add_logging(step_desc: str, return_if_fail: bool = False) -> Callable: def logging_decorator(func) -> Callable: def logging(*args, **kwargs) -> TerminalResponse: - logger.info(f"{step_desc} - Paramters: {kwargs}") + logger.info(f"{step_desc} - Parameters: {kwargs}") for line in func(*args, **kwargs): if (type(line) == bool) and not line: logger.error(f"{step_desc} Failed!") diff --git a/openandroidinstaller/views/install_addons_view.py b/openandroidinstaller/views/install_addons_view.py index 547ea540..110c9f91 100644 --- a/openandroidinstaller/views/install_addons_view.py +++ b/openandroidinstaller/views/install_addons_view.py @@ -143,7 +143,7 @@ def check_advanced_switch(e): def run_install_addons(self, e): """ - Run the addon installation process trough twrp. + Run the addon installation process through twrp. Some parts of the command are changed by placeholders. """ diff --git a/openandroidinstaller/views/install_view.py b/openandroidinstaller/views/install_view.py index fca0e728..de6c3858 100644 --- a/openandroidinstaller/views/install_view.py +++ b/openandroidinstaller/views/install_view.py @@ -171,7 +171,7 @@ def check_addons_switch(e): def run_install(self, e): """ - Run the installation process trough twrp. + Run the installation process through twrp. Some parts of the command are changed by placeholders. """ diff --git a/openandroidinstaller/views/step_view.py b/openandroidinstaller/views/step_view.py index 0fd5966a..287c42ad 100644 --- a/openandroidinstaller/views/step_view.py +++ b/openandroidinstaller/views/step_view.py @@ -108,14 +108,14 @@ def check_advanced_switch(e): self.progress_indicator = ProgressIndicator(expand=True) # main controls - steps_indictor_img_lookup = { + steps_indicator_img_lookup = { "Unlock the bootloader": "steps-header-unlock.png", "Boot custom recovery": "steps-header-recovery.png", } self.right_view_header.controls = [ get_title( f"{self.step.title}", - step_indicator_img=steps_indictor_img_lookup.get(self.step.title), + step_indicator_img=steps_indicator_img_lookup.get(self.step.title), ) ] self.right_view.controls = [