add autoresume variable functionality

This commit is contained in:
Vxrtrauter
2026-01-13 23:58:23 +01:00
parent cc3b201450
commit db77bed3cf
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -16,6 +16,7 @@ class AppState(QObject):
self._image_path: str = ""
self.ignore_updates: bool = False
self.debug: bool = False
self.autoresume: bool = True
self.tracker: str = "rutracker"
self.api_url: str = "https://api.michijackson.xyz"
self.download_path: str = str(Path.home() / "Downloads")
+1 -1
View File
@@ -46,10 +46,10 @@ if __name__ == "__main__":
if state.debug:
print("Starting Aria2 Server")
state.aria2process = run_aria2server()
check_completed(downloads, True)
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))
run_thread(threading.Thread(target=check_completed, args=(downloads, state.autoresume)))
if state.debug:
print("Launching GUI")
run_gui()