The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
feat(ui): 为按钮组件添加 ToolTipFilter
XiaoYouChR9d258f18ad44
diff --git a/app/view/components/option_cards.py b/app/view/components/option_cards.pyindex 2290942b..1df5f90b 100644--- a/app/view/components/option_cards.py+++ b/app/view/components/option_cards.py@@ -5,7 +5,7 @@ from PySide6.QtGui import QColor, QPainterfrom PySide6.QtWidgets import QFileDialog, QHBoxLayout, QVBoxLayout, QSizePolicy, QWidgetfrom qfluentwidgets import (Action, BodyLabel, FluentIcon, IconWidget, LineEdit, Slider,- TransparentToolButton, isDarkTheme,+ ToolTipFilter, TransparentToolButton, isDarkTheme,)from app.config.cfg import cfg@@ -226,6 +226,7 @@ class HeadersEditCard(OptionCard):def _initWidget(self) -> None:self.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding)self.resetButton.setToolTip(self.tr("恢复默认请求标头"))+ self.resetButton.installEventFilter(ToolTipFilter(self.resetButton))self.headersEdit.setPlaceholderText(self.tr("每行一个 Name: Value"))def _initLayout(self) -> None:diff --git a/features/m3u8_pack/cards.py b/features/m3u8_pack/cards.pyindex 400128b1..a7a10ecf 100644--- a/features/m3u8_pack/cards.py+++ b/features/m3u8_pack/cards.py@@ -4,7 +4,7 @@ from pathlib import Pathfrom typing import TYPE_CHECKINGfrom PySide6.QtWidgets import QFileDialog, QHBoxLayout, QVBoxLayout-from qfluentwidgets import BodyLabel, ComboBox, CompactSpinBox, FluentIcon, TransparentToolButton+from qfluentwidgets import BodyLabel, ComboBox, CompactSpinBox, FluentIcon, ToolTipFilter, TransparentToolButtonfrom app.format import toReadableSizefrom app.models.task import TaskStatus@@ -59,6 +59,7 @@ class M3U8LiveTaskCard(UniversalTaskCard):if self._task.status == TaskStatus.RUNNING:self.toggleButton.setIcon(FluentIcon.ACCEPT)self.toggleButton.setToolTip(self.tr("停止并定案"))+ self.toggleButton.installEventFilter(ToolTipFilter(self.toggleButton))self.toggleButton.setEnabled(True)elif self._task.status == TaskStatus.COMPLETED:self.toggleButton.setIcon(FluentIcon.ACCEPT)@@ -183,6 +184,7 @@ class DecryptionKeyCard(OptionCard):def _initWidget(self, keys: list):self.keyFileButton.setToolTip(self.tr("选择 KEY 文本文件"))+ self.keyFileButton.installEventFilter(ToolTipFilter(self.keyFileButton))self.keysEdit.setPlaceholderText("KID1:KEY1\nKID2:KEY2")self.keysEdit.setPlainText("\n".join(keys))self.keyFileLabel.setText(Path(self._keyTextFile).name if self._keyTextFile else "")