mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Allow more fine tuning of uploads. Closes #684.
This commit is contained in:
@@ -588,6 +588,15 @@ public:
|
||||
setValue(QString::fromUtf8("Preferences/Bittorrent/MaxConnecsPerTorrent"), val);
|
||||
}
|
||||
|
||||
int getMaxUploads() const {
|
||||
return value(QString::fromUtf8("Preferences/Bittorrent/MaxUploads"), 8).toInt();
|
||||
}
|
||||
|
||||
void setMaxUploads(int val) {
|
||||
if (val <= 0) val = -1;
|
||||
setValue(QString::fromUtf8("Preferences/Bittorrent/MaxUploads"), val);
|
||||
}
|
||||
|
||||
int getMaxUploadsPerTorrent() const {
|
||||
return value(QString::fromUtf8("Preferences/Bittorrent/MaxUploadsPerTorrent"), 4).toInt();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user