mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-10-26 09:30:30 -05:00
[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:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user