mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
Add an option to allow the use of proxies only for torrents
Closes #2701.
This commit is contained in:
parent
e728710430
commit
1c8abd5c3b
6 changed files with 62 additions and 27 deletions
|
@ -832,6 +832,16 @@ void Preferences::setForceProxy(bool enabled)
|
|||
setValue("Preferences/Connection/ProxyForce", enabled);
|
||||
}
|
||||
|
||||
void Preferences::setProxyOnlyForTorrents(bool enabled)
|
||||
{
|
||||
setValue("Preferences/Connection/ProxyOnlyForTorrents", enabled);
|
||||
}
|
||||
|
||||
bool Preferences::isProxyOnlyForTorrents() const
|
||||
{
|
||||
return value("Preferences/Connection/ProxyOnlyForTorrents", false).toBool();
|
||||
}
|
||||
|
||||
// Bittorrent options
|
||||
int Preferences::getMaxConnecs() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue