The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
feat(draft): 重命名时只选中扩展名前的部分
XiaoYouChR38e1deb9b1c6
diff --git a/app/view/cards/draft_cards.py b/app/view/cards/draft_cards.pyindex 7c2a1455..8ddc9739 100644--- a/app/view/cards/draft_cards.py+++ b/app/view/cards/draft_cards.py@@ -2,6 +2,8 @@ from __future__ import annotationsfrom typing import TYPE_CHECKING+from pathlib import PurePosixPath+from PySide6.QtCore import QFileInfo, Signal, Qtfrom PySide6.QtGui import QColor, QPainterfrom PySide6.QtWidgets import QFileIconProvider, QHBoxLayout, QWidget@@ -81,7 +83,7 @@ class DraftCard(QWidget):self.nameEdit.setText(self._task.name)self.nameEdit.show()self.nameEdit.setFocus()- self.nameEdit.selectAll()+ self.nameEdit.setSelection(0, len(PurePosixPath(self._task.name).stem))def _onNameEdited(self) -> None:newName = self.nameEdit.text().strip()