From 63846292ff2ce822b60ef723607245caafb51581 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Sun, 16 Feb 2025 20:26:30 -0500 Subject: [PATCH] refactor: update tooltips for security icon add check when appTls State Changes --- src/apps/deskflow-gui/MainWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/deskflow-gui/MainWindow.cpp b/src/apps/deskflow-gui/MainWindow.cpp index ee81c4d10..e174cb2e3 100644 --- a/src/apps/deskflow-gui/MainWindow.cpp +++ b/src/apps/deskflow-gui/MainWindow.cpp @@ -355,6 +355,7 @@ void MainWindow::appConfigTlsChanged() if (m_tlsUtility.isEnabled() && !QFile::exists(m_appConfig.tlsCertPath())) { m_tlsUtility.generateCertificate(); } + updateSecurityIcon(ui->lblConnectionSecurityStatus->isVisible()); } void MainWindow::trayIconActivated(QSystemTrayIcon::ActivationReason reason) @@ -529,7 +530,7 @@ void MainWindow::updateSecurityIcon(bool visible) bool secureSocket = m_appConfig.tlsEnabled(); - const auto txt = secureSocket ? tr("Secure Connection") : tr("Insecure Connection"); + const auto txt = secureSocket ? tr("Encryption Enabled") : tr("Encryption Disabled"); ui->lblConnectionSecurityStatus->setToolTip(txt); const auto icon = QIcon::fromTheme(secureSocket ? QIcon::ThemeIcon::SecurityHigh : QIcon::ThemeIcon::SecurityLow);