fix: rename updateLocalFingerprint to updateFingerprintButton for clarity
The function name didn't make it's actual side effects clear to me
This commit is contained in:
parent
4cb5c3ec9c
commit
74392eea6c
2 changed files with 4 additions and 4 deletions
|
|
@ -706,7 +706,7 @@ void MainWindow::applyConfig()
|
|||
if (const auto host = Settings::value(Settings::Client::RemoteHost).toString(); !host.isEmpty())
|
||||
ui->lineHostname->setText(host);
|
||||
|
||||
updateLocalFingerprint();
|
||||
updateFingerprintButton();
|
||||
setTrayIcon();
|
||||
|
||||
if (const auto ip = Settings::value(Settings::Core::Interface).toString(); !ip.isEmpty()) {
|
||||
|
|
@ -991,7 +991,7 @@ void MainWindow::coreConnectionStateChanged(ConnectionState state)
|
|||
}
|
||||
}
|
||||
|
||||
void MainWindow::updateLocalFingerprint()
|
||||
void MainWindow::updateFingerprintButton()
|
||||
{
|
||||
m_statusBar->setBtnFingerprintVisible(TlsUtility::isEnabled() && !m_fingerprint.data.isEmpty());
|
||||
}
|
||||
|
|
@ -1189,7 +1189,7 @@ bool MainWindow::generateCertificate()
|
|||
|
||||
m_fingerprint = {QCryptographicHash::Sha256, TlsUtility::certFingerprint()};
|
||||
|
||||
updateLocalFingerprint();
|
||||
updateFingerprintButton();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ private:
|
|||
void secureSocket(bool secureSocket);
|
||||
void connectSlots();
|
||||
void handleLogLine(const QString &line);
|
||||
void updateLocalFingerprint();
|
||||
void updateFingerprintButton();
|
||||
void updateScreenName();
|
||||
void saveSettings() const;
|
||||
void showConfigureServer(const QString &message);
|
||||
|
|
|
|||
Loading…
Reference in a new issue