refactor: update progress dialog and tidy UI

This commit is contained in:
Vxrtrauter
2026-03-21 00:27:56 +01:00
parent c0f5060451
commit 0a591e1cda
6 changed files with 28 additions and 37 deletions
-2
View File
@@ -60,7 +60,6 @@ def add_download(magnet_uri):
state.active_downloads = {}
init_session()
free_space = get_free_space_mb(state.download_path)
if magnet_uri in state.active_downloads:
@@ -91,7 +90,6 @@ def add_download(magnet_uri):
params.save_path = state.download_path
handle = state.dl_session.add_torrent(params)
while not handle.has_metadata():
time.sleep(1)
-3
View File
@@ -17,9 +17,6 @@ def cleanup_session():
state.dl_session = None
state.active_downloads.clear()
def send_notification(shutdown_event):
notified = set()
while not shutdown_event.is_set():