mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
FEATURE: Added per-torrent ratio limiting (Christian Kandeler)
This commit is contained in:
@@ -547,11 +547,11 @@ public:
|
||||
setValue(QString::fromUtf8("Preferences/Bittorrent/Encryption"), val);
|
||||
}
|
||||
|
||||
qreal getMaxRatio() const {
|
||||
qreal getGlobalMaxRatio() const {
|
||||
return value(QString::fromUtf8("Preferences/Bittorrent/MaxRatio"), -1).toDouble();
|
||||
}
|
||||
|
||||
void setMaxRatio(qreal ratio) {
|
||||
void setGlobalMaxRatio(qreal ratio) {
|
||||
setValue(QString::fromUtf8("Preferences/Bittorrent/MaxRatio"), ratio);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user