Add download completion tracking and update logging functionality

This commit is contained in:
Vxrtrauter
2026-01-13 21:31:33 +01:00
parent 97eabf6ec6
commit 1c4c010e4e
4 changed files with 151 additions and 5 deletions
+2 -2
View File
@@ -1,11 +1,10 @@
from core.interface.gui import MainWindow
from core.utils.data.state import state
from core.network.aria2_integration import aria2server
from core.network.aria2_integration import send_notification
from core.network.aria2_integration import send_notification, update_log
from core.utils.general.shutdown import closehelper, shutdown_event
from core.utils.general.wrappers import run_thread
from core.utils.config.config import read_config
from core.utils.general.logs import get_download_logs
from PySide6 import QtWidgets
import qdarktheme
import darkdetect
@@ -45,6 +44,7 @@ if __name__ == "__main__":
state.aria2process = run_aria2server()
signal.signal(signal.SIGINT, keyboardinterrupthandler)
run_thread(threading.Thread(target=send_notification, args=(shutdown_event,), daemon=True))
run_thread(threading.Thread(target=update_log, args=(shutdown_event,), daemon=True))
if state.debug:
print("Launching GUI")
run_gui()