Skip to content

Commit

Permalink
fix public trackers list settings (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
tehcneko authored Oct 25, 2024
1 parent d435e73 commit 8840362
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/optionsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1101,9 +1101,6 @@ void OptionsDialog::loadBittorrentTabOptions()
m_ui->spinMaxRatio->setEnabled(true);
m_ui->comboRatioLimitAct->setEnabled(true);
m_ui->spinMaxRatio->setValue(session->globalMaxRatio());
m_ui->checkAutoUpdateTrackers->setChecked(session->isAutoUpdateTrackersEnabled());
m_ui->textCustomizeTrackersListUrl->setText(pref->customizeTrackersListUrl());
m_ui->textPublicTrackers->setPlainText(session->publicTrackers());
}
else
{
Expand Down Expand Up @@ -1150,6 +1147,9 @@ void OptionsDialog::loadBittorrentTabOptions()

m_ui->checkEnableAddTrackers->setChecked(session->isAddTrackersEnabled());
m_ui->textTrackers->setPlainText(session->additionalTrackers());
m_ui->checkAutoUpdateTrackers->setChecked(session->isAutoUpdateTrackersEnabled());
m_ui->textCustomizeTrackersListUrl->setText(pref->customizeTrackersListUrl());
m_ui->textPublicTrackers->setPlainText(session->publicTrackers());
connect(m_ui->checkAutoUpdateTrackers, &QGroupBox::toggled, this, &ThisType::enableApplyButton);
connect(m_ui->textCustomizeTrackersListUrl, &QLineEdit::textChanged, this, &ThisType::enableApplyButton);

Expand Down

0 comments on commit 8840362

Please sign in to comment.