mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 15:32:48 -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
|
@ -434,6 +434,7 @@ OptionsDialog::OptionsDialog(QWidget *parent)
|
|||
connect(m_ui->spinMaxUploadsPerTorrent, qSpinBoxValueChanged, this, &ThisType::enableApplyButton);
|
||||
connect(m_ui->checkDHT, &QAbstractButton::toggled, this, &ThisType::enableApplyButton);
|
||||
connect(m_ui->checkAnonymousMode, &QAbstractButton::toggled, this, &ThisType::enableApplyButton);
|
||||
connect(m_ui->spinBoxMaxActiveCheckingTorrents, qSpinBoxValueChanged, this, &ThisType::enableApplyButton);
|
||||
connect(m_ui->checkPeX, &QAbstractButton::toggled, this, &ThisType::enableApplyButton);
|
||||
connect(m_ui->checkLSD, &QAbstractButton::toggled, this, &ThisType::enableApplyButton);
|
||||
connect(m_ui->comboEncryption, qComboBoxCurrentIndexChanged, this, &ThisType::enableApplyButton);
|
||||
|
@ -816,6 +817,7 @@ void OptionsDialog::saveOptions()
|
|||
session->setLSDEnabled(isLSDEnabled());
|
||||
session->setEncryption(getEncryptionSetting());
|
||||
session->setAnonymousModeEnabled(m_ui->checkAnonymousMode->isChecked());
|
||||
session->setMaxActiveCheckingTorrents(m_ui->spinBoxMaxActiveCheckingTorrents->value());
|
||||
session->setAddTrackersEnabled(m_ui->checkEnableAddTrackers->isChecked());
|
||||
session->setAdditionalTrackers(m_ui->textTrackers->toPlainText());
|
||||
session->setGlobalMaxRatio(getMaxRatio());
|
||||
|
@ -1208,6 +1210,7 @@ void OptionsDialog::loadOptions()
|
|||
m_ui->checkLSD->setChecked(session->isLSDEnabled());
|
||||
m_ui->comboEncryption->setCurrentIndex(session->encryption());
|
||||
m_ui->checkAnonymousMode->setChecked(session->isAnonymousModeEnabled());
|
||||
m_ui->spinBoxMaxActiveCheckingTorrents->setValue(session->maxActiveCheckingTorrents());
|
||||
m_ui->checkEnableAddTrackers->setChecked(session->isAddTrackersEnabled());
|
||||
m_ui->textTrackers->setPlainText(session->additionalTrackers());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue