Skip to content

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

更改设置默认值, 添加线程数过多的风险提醒

XiaoYouChR64539d2f4ebb
diff --git a/app/common/config.py b/app/common/config.py
index 4a957633..cc02a15f 100644
--- a/app/common/config.py
+++ b/app/common/config.py
@@ -48,11 +48,11 @@ class GeometrySerializer(ConfigSerializer): # 将字符串 "x,y,w,h," 转换为
class Config(QConfig):
""" Config of application """
# download
- maxReassignSize = RangeConfigItem("Download", "MaxReassignSize", 15, RangeValidator(1, 100))
+ maxReassignSize = RangeConfigItem("Download", "MaxReassignSize", 8, RangeValidator(1, 100))
downloadFolder = ConfigItem(
"Download", "DownloadFolder", QDir.currentPath(), FolderValidator())
- maxBlockNum = RangeConfigItem("Download", "MaxBlockNum", 32, RangeValidator(1, 256))
+ maxBlockNum = RangeConfigItem("Download", "MaxBlockNum", 8, RangeValidator(1, 256))
autoSpeedUp = ConfigItem("Download", "AutoSpeedUp", True, BoolValidator())
proxyServer = ConfigItem("Download", "ProxyServer", "Auto", ProxyValidator())
diff --git a/app/view/setting_interface.py b/app/view/setting_interface.py
index 8e5ea8bc..4bcf2580 100644
--- a/app/view/setting_interface.py
+++ b/app/view/setting_interface.py
@@ -189,7 +189,7 @@ class SettingInterface(SmoothScrollArea):
cfg.maxBlockNum,
FIF.CLOUD,
"下载线程数",
- '下载线程越多,下载越快,同时也越吃性能',
+ '下载线程越多,下载越快。当线程数大于 64 时,有文件损坏的风险。',
self.downloadGroup
)
@@ -551,3 +551,4 @@ class SettingInterface(SmoothScrollArea):
self.aboutCard.clicked.connect(self.__onAboutCardClicked)
self.feedbackCard.clicked.connect(
lambda: QDesktopServices.openUrl(QUrl(FEEDBACK_URL)))
+