From d8e311fe59897fa9748531603be2da8942a451ff Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Wed, 12 Feb 2025 23:09:59 -0500 Subject: [PATCH] fix: only regenerate the tls certificate if tls is enabled and we do not already have a certificate --- src/apps/deskflow-gui/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/deskflow-gui/MainWindow.cpp b/src/apps/deskflow-gui/MainWindow.cpp index b7d5a3e00..4be96c2b2 100644 --- a/src/apps/deskflow-gui/MainWindow.cpp +++ b/src/apps/deskflow-gui/MainWindow.cpp @@ -353,7 +353,7 @@ void MainWindow::configScopesSaving() void MainWindow::appConfigTlsChanged() { - if (m_tlsUtility.isEnabled()) { + if (m_tlsUtility.isEnabled() && !QFile::exists(m_appConfig.tlsCertPath())) { m_tlsUtility.generateCertificate(); } }