refactor: enhance settings update logging and ensure console output on save

This commit is contained in:
Vxrtrauter
2026-01-31 05:09:34 +01:00
parent 6432511639
commit 564c0f2ac5
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -100,4 +100,4 @@ def update_settings():
} }
state.dl_session.apply_settings(settings) state.dl_session.apply_settings(settings)
consoleLog("Updated Settings")
+3
View File
@@ -1,5 +1,6 @@
from core.network.libtorrent_int import update_settings from core.network.libtorrent_int import update_settings
from core.utils.data.state import state from core.utils.data.state import state
from core.utils.general.logs import consoleLog
from .config import create_config from .config import create_config
@@ -21,6 +22,8 @@ def save_settings(close=lambda: None, apiurl=None, download_path=None, down_spee
if max_downloads is not None: if max_downloads is not None:
state.max_downloads = max_downloads state.max_downloads = max_downloads
update_settings() update_settings()
consoleLog("Saved Settings")
create_config() create_config()
close() close()