add settings_path to AppState and add models for download logging

This commit is contained in:
Vxrtrauter
2026-01-07 22:23:29 +01:00
parent 1a59c45ba4
commit 56e8fada4d
3 changed files with 23 additions and 7 deletions
+15
View File
@@ -0,0 +1,15 @@
from dataclasses import dataclass
from typing import List
@dataclass
class Download:
title: str
url: str
torrent_uri: str
completed: bool
@dataclass
class DownloadList:
count: int
data: List[Download]
+1
View File
@@ -24,6 +24,7 @@ class AppState(QObject):
self.aria2: Any = None
self.aria2p: Any = None
self.aria2_threads: int = 4
self.settings_path: str = None
@property
def image_path(self) -> str: