mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 13:48:05 -06: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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user