mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 05:01:25 -07:00
Change placement of stop tracker timeout
This commit is contained in:
parent
057860584c
commit
bf32e90c40
6 changed files with 47 additions and 47 deletions
|
@ -270,8 +270,6 @@ void AppController::preferencesAction()
|
|||
// libtorrent preferences
|
||||
// Async IO threads
|
||||
data["async_io_threads"] = session->asyncIOThreads();
|
||||
// stop tracker timeout
|
||||
data["stop_tracker_timeout"] = session->stopTrackerTimeout();
|
||||
// File pool size
|
||||
data["file_pool_size"] = session->filePoolSize();
|
||||
// Checking memory usage
|
||||
|
@ -311,6 +309,8 @@ void AppController::preferencesAction()
|
|||
data["announce_to_all_trackers"] = session->announceToAllTrackers();
|
||||
data["announce_to_all_tiers"] = session->announceToAllTiers();
|
||||
data["announce_ip"] = session->announceIP();
|
||||
// Stop tracker timeout
|
||||
data["stop_tracker_timeout"] = session->stopTrackerTimeout();
|
||||
|
||||
setResult(data);
|
||||
}
|
||||
|
@ -649,8 +649,8 @@ void AppController::setPreferencesAction()
|
|||
});
|
||||
const QString ifaceName = (ifacesIter != ifaces.cend()) ? ifacesIter->humanReadableName() : QString {};
|
||||
|
||||
session->setNetworkInterface(ifaceValue);
|
||||
session->setNetworkInterfaceName(ifaceName);
|
||||
session->setNetworkInterface(ifaceValue);
|
||||
session->setNetworkInterfaceName(ifaceName);
|
||||
}
|
||||
// Current network interface address
|
||||
if (hasKey("current_interface_address")) {
|
||||
|
@ -671,9 +671,6 @@ void AppController::setPreferencesAction()
|
|||
// Async IO threads
|
||||
if (hasKey("async_io_threads"))
|
||||
session->setAsyncIOThreads(it.value().toInt());
|
||||
// Stop tracker timeout
|
||||
if (hasKey("stop_tracker_timeout"))
|
||||
session->setStopTrackerTimeout(it.value().toInt());
|
||||
// File pool size
|
||||
if (hasKey("file_pool_size"))
|
||||
session->setFilePoolSize(it.value().toInt());
|
||||
|
@ -738,6 +735,9 @@ void AppController::setPreferencesAction()
|
|||
const QHostAddress announceAddr {it.value().toString().trimmed()};
|
||||
session->setAnnounceIP(announceAddr.isNull() ? QString {} : announceAddr.toString());
|
||||
}
|
||||
// Stop tracker timeout
|
||||
if (hasKey("stop_tracker_timeout"))
|
||||
session->setStopTrackerTimeout(it.value().toInt());
|
||||
|
||||
// Save preferences
|
||||
pref->apply();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue