A full-featured download manager.
fix: linux & windows aria2 split overflow
Dr_rOot59e42eec858c
diff --git a/src/main/core/ConfigManager.js b/src/main/core/ConfigManager.jsindex 6ef10173..bf45dd30 100644--- a/src/main/core/ConfigManager.js+++ b/src/main/core/ConfigManager.js@@ -1,4 +1,5 @@import { app } from 'electron'+import is from 'electron-is'import Store from 'electron-store'import {getLogPath,@@ -24,15 +25,17 @@ export default class ConfigManager {name: 'system',defaults: {dir: getUserDownloadsPath(),- continue: true, // 断点续传+ // 断点续传+ continue: true,pause: true,- split: 32,+ split: 16,'rpc-listen-port': 16800,'rpc-secret': '','auto-file-renaming': true,'allow-overwrite': true,'max-concurrent-downloads': 5,- 'max-connection-per-server': 64,+ // macOS 版本修改过源码自己编译的,Linux 和 Windows 版本 暂未处理+ 'max-connection-per-server': is.macOS() ? 64 : 16,'min-split-size': '1M','max-overall-download-limit': 0,'max-overall-upload-limit': 0,diff --git a/src/renderer/components/Preference/Basic.vue b/src/renderer/components/Preference/Basic.vueindex 43625d3b..8ffd606c 100644--- a/src/renderer/components/Preference/Basic.vue+++ b/src/renderer/components/Preference/Basic.vue@@ -45,7 +45,7 @@v-model="form.split"controls-position="right":min="1"- :max="64"+ :max="form.maxConnectionPerServer"label="单任务下载线程数"></el-input-number></el-col>@@ -86,6 +86,7 @@split,resumeAllWhenAppLaunched,maxConcurrentDownloads,+ maxConnectionPerServer,taskNotification,newTaskShowDownloading} = config@@ -99,6 +100,7 @@continue: config.continue,resumeAllWhenAppLaunched,maxConcurrentDownloads,+ maxConnectionPerServer,taskNotification,newTaskShowDownloading}