The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
修复 download_task.py 的错误, 优化 Acrylic Menu.
XiaoYouChRcae4447bf66e
diff --git a/app/common/download_task.py b/app/common/download_task.pyindex 09ce167e..1c037944 100644--- a/app/common/download_task.py+++ b/app/common/download_task.py@@ -22,7 +22,6 @@ class DownloadWorker:"""Worker responsible for downloading a specific range of a file"""def __init__(self, start, progress, end, client: httpx.AsyncClient):- self._task = Noneself.startPos = startself.progress = progressself.endPos = end@@ -44,7 +43,6 @@ class DownloadWorker:return self._taskelse:logger.error("Task not set yet")- return None@task.setterdef task(self, task: asyncio.Task):diff --git a/app/components/custom_components.py b/app/components/custom_components.pyindex 678b21f7..2c10d16c 100644--- a/app/components/custom_components.py+++ b/app/components/custom_components.py@@ -142,7 +142,7 @@ class CustomAcrylicMenu(RoundMenu):def __initWidgets(self):self.setWindowFlags(Qt.WindowType.Popup | Qt.WindowType.FramelessWindowHint |- Qt.WindowType.NoDropShadowWindowHint)+ Qt.WindowType.NoDropShadowWindowHint | Qt.WindowType.WindowStaysOnTopHint)self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)self.setMouseTracking(True)@@ -152,7 +152,7 @@ class CustomAcrylicMenu(RoundMenu):self.timer.setInterval(400)self.timer.timeout.connect(self._onShowMenuTimeOut)- self.hBoxLayout.addWidget(self.view, 1, Qt.AlignCenter)+ self.hBoxLayout.addWidget(self.view, 1, Qt.AlignmentFlag.AlignCenter)self.hBoxLayout.setContentsMargins(0, 0, 0, 0)FluentStyleSheet.MENU.apply(self)