The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
修复托盘菜单位置偏移问题
XiaoYouChR25bd83cf87de
diff --git a/app/components/custom_tray.py b/app/components/custom_tray.pyindex bda97dba..16b135fc 100644--- a/app/components/custom_tray.py+++ b/app/components/custom_tray.py@@ -3,11 +3,22 @@ from PySide6.QtGui import QIconfrom PySide6.QtWidgets import QSystemTrayIcon, QApplicationfrom qfluentwidgets import Actionfrom qfluentwidgets import FluentIcon as FIF+from qfluentwidgets.common.screen import getCurrentScreenGeometryfrom qfluentwidgets.components.material import AcrylicMenuclass FixedAcrylicSystemTrayMenu(AcrylicMenu):- """ 修复背景获取偏移的问题 """+ """ 修复背景获取偏移、位置偏移的问题 """++ def adjustPosition(self):+ m = self.layout().contentsMargins()+ rect = getCurrentScreenGeometry()+ w, h = self.layout().sizeHint().width() + 5, self.layout().sizeHint().height()++ x = min(self.x() - m.left(), rect.right() - w)+ y = self.y() - 45++ self.move(x, y)def showEvent(self, e):super().showEvent(e)