refactor: mainwindow move tls version to securty tooltip
This commit is contained in:
parent
53d2b3bd2e
commit
e9c8965066
1 changed files with 3 additions and 6 deletions
|
|
@ -549,7 +549,8 @@ void MainWindow::updateSecurityIcon(bool visible)
|
||||||
|
|
||||||
bool secureSocket = m_appConfig.tlsEnabled();
|
bool secureSocket = m_appConfig.tlsEnabled();
|
||||||
|
|
||||||
const auto txt = secureSocket ? tr("Encryption Enabled") : tr("Encryption Disabled");
|
const auto txt =
|
||||||
|
secureSocket ? tr("%1 Encryption Enabled").arg(m_coreProcess.secureSocketVersion()) : tr("Encryption Disabled");
|
||||||
m_lblSecurityStatus->setToolTip(txt);
|
m_lblSecurityStatus->setToolTip(txt);
|
||||||
|
|
||||||
const auto icon = QIcon::fromTheme(secureSocket ? QIcon::ThemeIcon::SecurityHigh : QIcon::ThemeIcon::SecurityLow);
|
const auto icon = QIcon::fromTheme(secureSocket ? QIcon::ThemeIcon::SecurityHigh : QIcon::ThemeIcon::SecurityLow);
|
||||||
|
|
@ -870,11 +871,7 @@ void MainWindow::updateStatus()
|
||||||
|
|
||||||
case Connected: {
|
case Connected: {
|
||||||
updateSecurityIcon(true);
|
updateSecurityIcon(true);
|
||||||
if (m_secureSocket) {
|
setStatus(tr("%1 is connected").arg(kAppName));
|
||||||
setStatus(tr("%1 is connected (with %2)").arg(kAppName, m_coreProcess.secureSocketVersion()));
|
|
||||||
} else {
|
|
||||||
setStatus(tr("%1 is connected (without TLS encryption)").arg(kAppName));
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue