mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08: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:
parent
5fbc636f93
commit
f33cfcb288
1 changed files with 7 additions and 0 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue