Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
UI Refresh rate additional handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Apr 22, 2024
1 parent f11ba41 commit 68113bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.2.47"
__version__ = "5.2.48"
5 changes: 3 additions & 2 deletions cyberdrop_dl/ui/prompts/settings_user_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 68113bb

Please sign in to comment.