mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-13 17:44:48 -07:00
add more info to dialogs (#4293)
* add more info to dialogs adds descriptive strings to the register, password reset request, password reset challenge request, password reset token dialogs adds tip to set manager to use ctrl a to select all sets change sizes in set manager moves default server info to settings instead of having it hardcoded in each dialog * make sets manager smaller * clangify * cleanup
This commit is contained in:
parent
1b4543aa11
commit
8e954b10e6
16 changed files with 170 additions and 158 deletions
|
|
@ -10,12 +10,13 @@
|
|||
|
||||
DlgEditPassword::DlgEditPassword(QWidget *parent) : QDialog(parent)
|
||||
{
|
||||
|
||||
oldPasswordLabel = new QLabel(tr("Old password:"));
|
||||
oldPasswordEdit = new QLineEdit();
|
||||
|
||||
if (SettingsCache::instance().servers().getSavePassword())
|
||||
oldPasswordEdit->setText(SettingsCache::instance().servers().getPassword());
|
||||
auto &servers = SettingsCache::instance().servers();
|
||||
if (servers.getSavePassword()) {
|
||||
oldPasswordEdit->setText(servers.getPassword());
|
||||
}
|
||||
|
||||
oldPasswordLabel->setBuddy(oldPasswordEdit);
|
||||
oldPasswordEdit->setEchoMode(QLineEdit::Password);
|
||||
|
|
@ -59,7 +60,5 @@ void DlgEditPassword::actOk()
|
|||
return;
|
||||
}
|
||||
|
||||
// always save the password so it will be picked up by the connect dialog
|
||||
SettingsCache::instance().servers().setPassword(newPasswordEdit->text());
|
||||
accept();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue