Skip to content

The only downloader you need. 下载器的集大成者。

修复上游 Bug, 更新 requirements.txt

XiaoYouChRe60e675a5099
diff --git a/app/components/custom_tray.py b/app/components/custom_tray.py
index 629bae34..6ad813b4 100644
--- a/app/components/custom_tray.py
+++ b/app/components/custom_tray.py
@@ -1,9 +1,18 @@
+from PySide6.QtCore import QRect
from PySide6.QtWidgets import QSystemTrayIcon, QApplication
from loguru import logger
from qfluentwidgets import Action, MessageBox
-from qfluentwidgets.components.material import AcrylicSystemTrayMenu
+from qfluentwidgets.components.material import AcrylicMenu
+class FixedAcrylicSystemTrayMenu(AcrylicMenu):
+ """ 修复背景获取便宜的问题 """
+
+ def showEvent(self, e):
+ super().showEvent(e)
+ self.adjustPosition()
+ self.view.acrylicBrush.grabImage(QRect(self.pos() + self.view.pos(), self.view.size()))
+
class CustomSystemTrayIcon(QSystemTrayIcon):
def __init__(self, parent=None):
@@ -11,7 +20,7 @@ class CustomSystemTrayIcon(QSystemTrayIcon):
self.setIcon(parent.windowIcon())
self.setToolTip('Ghost Downloader 🥰')
- self.menu = AcrylicSystemTrayMenu(parent=parent)
+ self.menu = FixedAcrylicSystemTrayMenu(parent=parent)
# self.view.acrylicBrush.grabImage(QRect(self.pos() + self.view.pos(), self.view.size()))
diff --git a/app/components/update_dialog.py b/app/components/update_dialog.py
index 2196d4f3..2a47ef7a 100644
--- a/app/components/update_dialog.py
+++ b/app/components/update_dialog.py
@@ -35,7 +35,7 @@ class GetUpdateThread(QThread):
except Exception as e:
logger.error(f"获取更新失败:{e}")
- self.gotResponse.emit({"ERROR" : f"获取更新失败:{e}"})
+ self.gotResponse.emit({"ERROR" : f"获取更新失败:{str(e)}"})
class UpdateDialog(MaskDialogBase):
diff --git a/app/view/setting_interface.py b/app/view/setting_interface.py
index 62571acb..c455cada 100644
--- a/app/view/setting_interface.py
+++ b/app/view/setting_interface.py
@@ -266,6 +266,7 @@ class SettingInterface(ScrollArea):
def __onAboutCardClicked(self):
""" check update and show information """
+ InfoBar.info("请稍候", "正在检查更新...", position=InfoBarPosition.TOP_RIGHT, duration=1000, parent=self)
checkUpdate(self)
def __connectSignalToSlot(self):
diff --git a/app/view/task_interface.py b/app/view/task_interface.py
index ae26bfc7..5c07b327 100644
--- a/app/view/task_interface.py
+++ b/app/view/task_interface.py
@@ -48,6 +48,10 @@ class TaskInterface(ScrollArea):
self.scrollWidget.setMinimumWidth(816)
self.expandLayout = ExpandLayout(self.scrollWidget)
self.expandLayout.setObjectName("expandLayout")
+
+ # Fixed ExpandLayout 向下偏移的问题 (等待上游修复)
+ self.expandLayout.setContentsMargins(11, 11, 11, 0)
+
self.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
# 全部开始/暂停 全部删除等其它功能区 TODO 计划任务
diff --git a/requirements.txt b/requirements.txt
index 4a233dd7..27e7dbfd 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,4 @@
-PySide6-Fluent-Widgets==1.5.0
+PySide6-Fluent-Widgets>=1.1.8
PySide6==6.4.2
loguru==0.7.2
httpx==0.27.0