mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-08 14:11:02 -07:00
Allow setting the number of maximum active checking torrents
This is to allow re-checking of multiple torrents simultaneously. This will benefit users who have multiple disks or SSD. Closes #15296. Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>
This commit is contained in:
parent
889d994dbc
commit
801cfdbc24
7 changed files with 75 additions and 1 deletions
|
@ -210,6 +210,8 @@ void AppController::preferencesAction()
|
|||
data["lsd"] = session->isLSDEnabled();
|
||||
data["encryption"] = session->encryption();
|
||||
data["anonymous_mode"] = session->isAnonymousModeEnabled();
|
||||
// Max active checking torrents
|
||||
data["max_active_checking_torrents"] = session->maxActiveCheckingTorrents();
|
||||
// Torrent Queueing
|
||||
data["queueing_enabled"] = session->isQueueingSystemEnabled();
|
||||
data["max_active_downloads"] = session->maxActiveDownloads();
|
||||
|
@ -584,6 +586,9 @@ void AppController::setPreferencesAction()
|
|||
session->setEncryption(it.value().toInt());
|
||||
if (hasKey("anonymous_mode"))
|
||||
session->setAnonymousModeEnabled(it.value().toBool());
|
||||
// Max active checking torrents
|
||||
if (hasKey("max_active_checking_torrents"))
|
||||
session->setMaxActiveCheckingTorrents(it.value().toInt());
|
||||
// Torrent Queueing
|
||||
if (hasKey("queueing_enabled"))
|
||||
session->setQueueingSystemEnabled(it.value().toBool());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue