fix: only regenerate the tls certificate if tls is enabled and we do not already have a certificate
This commit is contained in:
parent
500067a778
commit
d8e311fe59
1 changed files with 1 additions and 1 deletions
|
|
@ -353,7 +353,7 @@ void MainWindow::configScopesSaving()
|
||||||
|
|
||||||
void MainWindow::appConfigTlsChanged()
|
void MainWindow::appConfigTlsChanged()
|
||||||
{
|
{
|
||||||
if (m_tlsUtility.isEnabled()) {
|
if (m_tlsUtility.isEnabled() && !QFile::exists(m_appConfig.tlsCertPath())) {
|
||||||
m_tlsUtility.generateCertificate();
|
m_tlsUtility.generateCertificate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue