mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Add button for sending test email
This allows for easily testing whether the provided email configuration is correct. PR #20488.
This commit is contained in:
committed by
Chocobo1
parent
1702b6c891
commit
c06817f4eb
@@ -707,6 +707,11 @@ void OptionsDialog::loadDownloadsTabOptions()
|
||||
connect(m_ui->groupMailNotifAuth, &QGroupBox::toggled, this, &ThisType::enableApplyButton);
|
||||
connect(m_ui->mailNotifUsername, &QLineEdit::textChanged, this, &ThisType::enableApplyButton);
|
||||
connect(m_ui->mailNotifPassword, &QLineEdit::textChanged, this, &ThisType::enableApplyButton);
|
||||
connect(m_ui->sendTestEmail, &QPushButton::clicked, this, [this]
|
||||
{
|
||||
app()->sendTestEmail();
|
||||
QMessageBox::information(this, tr("Test email"), tr("Attempted to send email. Check your inbox to confirm success"));
|
||||
});
|
||||
|
||||
connect(m_ui->groupBoxRunOnAdded, &QGroupBox::toggled, this, &ThisType::enableApplyButton);
|
||||
connect(m_ui->lineEditRunOnAdded, &QLineEdit::textChanged, this, &ThisType::enableApplyButton);
|
||||
|
||||
Reference in New Issue
Block a user