mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 05:01:25 -07:00
Don't use deprecated libtorrent features
This commit is contained in:
parent
7f3291c3de
commit
60ffa3030e
16 changed files with 130 additions and 186 deletions
|
@ -159,7 +159,6 @@ void AppController::preferencesAction()
|
|||
data["proxy_password"] = proxyConf.password;
|
||||
|
||||
data["proxy_peer_connections"] = session->isProxyPeerConnectionsEnabled();
|
||||
data["force_proxy"] = session->isForceProxyEnabled();
|
||||
data["proxy_torrents_only"] = proxyManager->isProxyOnlyForTorrents();
|
||||
|
||||
// IP Filtering
|
||||
|
@ -281,8 +280,6 @@ void AppController::preferencesAction()
|
|||
data["disk_cache_ttl"] = session->diskCacheTTL();
|
||||
// Enable OS cache
|
||||
data["enable_os_cache"] = session->useOSCache();
|
||||
// Guided read cache
|
||||
data["enable_guided_read_cache"] = session->isGuidedReadCacheEnabled();
|
||||
// Coalesce reads & writes
|
||||
data["enable_coalesce_read_write"] = session->isCoalesceReadWriteEnabled();
|
||||
// Suggest mode
|
||||
|
@ -467,8 +464,6 @@ void AppController::setPreferencesAction()
|
|||
|
||||
if (hasKey("proxy_peer_connections"))
|
||||
session->setProxyPeerConnectionsEnabled(it.value().toBool());
|
||||
if (hasKey("force_proxy"))
|
||||
session->setForceProxyEnabled(it.value().toBool());
|
||||
if (hasKey("proxy_torrents_only"))
|
||||
proxyManager->setProxyOnlyForTorrents(it.value().toBool());
|
||||
|
||||
|
@ -693,9 +688,6 @@ void AppController::setPreferencesAction()
|
|||
// Enable OS cache
|
||||
if (hasKey("enable_os_cache"))
|
||||
session->setUseOSCache(it.value().toBool());
|
||||
// Guided read cache
|
||||
if (hasKey("enable_guided_read_cache"))
|
||||
session->setGuidedReadCacheEnabled(it.value().toBool());
|
||||
// Coalesce reads & writes
|
||||
if (hasKey("enable_coalesce_read_write"))
|
||||
session->setCoalesceReadWriteEnabled(it.value().toBool());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue