mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Add uploadLimit, downloadLimit fields to AddTorrentData & AddTorrentParams
This commit is contained in:
parent
e07501252c
commit
66b86888fc
4 changed files with 10 additions and 0 deletions
|
@ -2193,6 +2193,8 @@ bool Session::addTorrent_impl(AddTorrentData addData, const MagnetUri &magnetUri
|
|||
p.max_connections = maxConnectionsPerTorrent();
|
||||
p.max_uploads = maxUploadsPerTorrent();
|
||||
p.save_path = Utils::Fs::toNativePath(savePath).toStdString();
|
||||
p.upload_limit = addData.uploadLimit;
|
||||
p.download_limit = addData.downloadLimit;
|
||||
|
||||
m_addingTorrents.insert(hash, addData);
|
||||
// Adding torrent to BitTorrent session
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue