From 68113bb4815b417aa1c655ed09f7ebcbb3482b49 Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Mon, 22 Apr 2024 11:47:35 -0600 Subject: [PATCH] UI Refresh rate additional handling --- cyberdrop_dl/__init__.py | 2 +- cyberdrop_dl/ui/prompts/settings_user_prompts.py | 5 +++-- pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index ee3bf449a..eb66b3dc4 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.2.47" +__version__ = "5.2.48" diff --git a/cyberdrop_dl/ui/prompts/settings_user_prompts.py b/cyberdrop_dl/ui/prompts/settings_user_prompts.py index 73c382de0..0f209ef46 100644 --- a/cyberdrop_dl/ui/prompts/settings_user_prompts.py +++ b/cyberdrop_dl/ui/prompts/settings_user_prompts.py @@ -357,9 +357,10 @@ def edit_runtime_options_prompt(manager: Manager, config: Dict) -> None: vi_mode=manager.vi_mode, ).execute() - log_level = inquirer.number( + ui_refresh_rate = inquirer.number( message="Enter the desired UI refresh rate:", default=int(config['Runtime_Options']['ui_refresh_rate']), + min_allowed=1, validate=NumberValidator(), long_instruction="10 is the default", vi_mode=manager.vi_mode, @@ -372,7 +373,7 @@ def edit_runtime_options_prompt(manager: Manager, config: Dict) -> None: config["Runtime_Options"][key] = True config['Runtime_Options']['log_level'] = int(log_level) - config['Runtime_Options']['ui_refresh_rate'] = int(log_level) + config['Runtime_Options']['ui_refresh_rate'] = int(ui_refresh_rate) def edit_sort_options_prompt(manager: Manager, config: Dict) -> None: diff --git a/pyproject.toml b/pyproject.toml index 876921a90..24ea83346 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cyberdrop-dl" -version = "5.2.47" +version = "5.2.48" description = "Bulk downloader for multiple file hosts" authors = ["Jules Winnfield "] readme = "README.md"