Fix SSL certificate check always failed

A copy paste error was introduced in PR #20338.
This commit is contained in:
Chocobo1 2024-10-21 16:34:39 +08:00
parent 25dbea1388
commit 67972a7659
No known key found for this signature in database
GPG key ID: 210D9C873253A68C

View file

@ -1926,7 +1926,7 @@ Path OptionsDialog::getFilter() const
void OptionsDialog::webUIHttpsCertChanged(const Path &path)
{
const auto readResult = Utils::IO::readFile(path, Utils::Net::MAX_SSL_FILE_SIZE);
const bool isCertValid = !Utils::SSLKey::load(readResult.value_or(QByteArray())).isNull();
const bool isCertValid = Utils::Net::isSSLCertificatesValid(readResult.value_or(QByteArray()));
m_ui->textWebUIHttpsCert->setSelectedPath(path);
m_ui->lblSslCertStatus->setPixmap(UIThemeManager::instance()->getScaledPixmap(