The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
Keep isSpeedLimitEnabled separate from speedLimitation
The global download limit is modeled as a boolean (isSpeedLimitEnabled) plus a
value (speedLimitation), even though the adjacent BitTorrent upload limit
(maxUploadSpeed) uses a single value where 0 = unlimited. We deliberately
keep the separate enable flag: the user can toggle the limit off and back on
without losing their configured rate — the off state must not destroy the value.
Considered Options
- Collapse to a single
speedLimitationwith0 = unlimited(matchingmaxUploadSpeed, removing one config item and the_downloadLimitbranch). Rejected: turning the limit off would have to write0, discarding the remembered rate, so re-enabling couldn't restore it. The enable/disable state is intentionally independent of the rate value.