mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 00:17:23 -06:00
Started to simplify program preferences (merged UPnP/NAT-PMP)
This commit is contained in:
@@ -335,14 +335,6 @@ public:
|
||||
setValue(QString::fromUtf8("Preferences/Connection/UPnP"), enabled);
|
||||
}
|
||||
|
||||
bool isNATPMPEnabled() const {
|
||||
return value(QString::fromUtf8("Preferences/Connection/NAT-PMP"), true).toBool();
|
||||
}
|
||||
|
||||
void setNATPMPEnabled(bool enabled) {
|
||||
setValue(QString::fromUtf8("Preferences/Connection/NAT-PMP"), enabled);
|
||||
}
|
||||
|
||||
int getGlobalDownloadLimit() const {
|
||||
return value("Preferences/Connection/GlobalDLLimit", -1).toInt();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user