From 95a687ddd925b3dcaae8b70b136b90b193b33f9e Mon Sep 17 00:00:00 2001 From: KeksNino Date: Sun, 19 Oct 2025 04:07:41 +0200 Subject: [PATCH] fix updater --- core/utils/config/settings.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/core/utils/config/settings.py b/core/utils/config/settings.py index 6d122a5..6f6f1e7 100644 --- a/core/utils/config/settings.py +++ b/core/utils/config/settings.py @@ -13,11 +13,17 @@ def restart_aria2c(): atexit.unregister(kill_aria2server) atexit.register(kill_aria2server) -def save_settings(thread_count, close, apiurl, download_path, speed_limit): - state.aria2_threads = thread_count - state.api_url = apiurl - state.download_path = download_path - state.speed_limit = speed_limit +def save_settings(thread_count=None, close=lambda: None, apiurl=None, download_path=None, speed_limit=None, version=None): + if thread_count is not None: + state.aria2_threads = thread_count + if apiurl is not None: + state.api_url = apiurl + if download_path is not None: + state.download_path = download_path + if speed_limit is not None: + state.speed_limit = speed_limit + if version is not None: + state.version = version create_config() restart_aria2c()