[UI] Show 'Password saved' placeholder when verifier is stored (#7649)

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
BruebachL
2026-10-25 10:34:56 +01:00
committed by GitHub
parent 5fbc636f93
commit f33cfcb288

View File

@@ -295,9 +295,15 @@ void DlgConnect::updateDisplayInfo(const QString &saveName)
const QString stored = _data.at(4);
if (stored.startsWith("$")) {
storedVerifier = stored;
passwordEdit->clear();
passwordEdit->setPlaceholderText(tr("Password saved"));
} else {
passwordEdit->setText(stored);
passwordEdit->setPlaceholderText(QString());
}
} else {
passwordEdit->clear();
passwordEdit->setPlaceholderText(QString());
}
if (!_data.at(6).isEmpty()) {
@@ -323,6 +329,7 @@ void DlgConnect::newHostSelected(bool state)
portEdit->setDisabled(false);
playernameEdit->clear();
passwordEdit->clear();
passwordEdit->setPlaceholderText(QString());
storedVerifier.clear();
saveEdit->clear();
saveEdit->setPlaceholderText(tr("Unique Server Name"));