mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-10 10:35:17 -04:00
Redesign database unlock widget. (#3287)
With this change we get rid of the confusing key component checkboxes. Now a component is either there or not (if left empty). There is no redundant distinction between "unset" and "emtpy" anymore. For compatibility with older databases that have "empty" passwords, KeePassXC will ask if the user wants to retry with an empty password if unlocking failed and the password field was left blank. Besides these functional changes, the widget's layout has been rearranged to be more compact, less stretched out (e.g. input fields do not fill the full window width anymore), and more user-friendly by providing a help tooltip for the hardware key field and accessible descriptions for screen readers.
This commit is contained in:
parent
eb9371091a
commit
5492b5c4f6
7 changed files with 578 additions and 299 deletions
|
@ -29,7 +29,7 @@
|
|||
KeePass1OpenWidget::KeePass1OpenWidget(QWidget* parent)
|
||||
: DatabaseOpenWidget(parent)
|
||||
{
|
||||
m_ui->labelHeadline->setText(tr("Import KeePass1 database"));
|
||||
m_ui->labelHeadline->setText(tr("Import KeePass1 Database"));
|
||||
}
|
||||
|
||||
void KeePass1OpenWidget::openDatabase()
|
||||
|
@ -39,11 +39,11 @@ void KeePass1OpenWidget::openDatabase()
|
|||
QString password;
|
||||
QString keyFileName;
|
||||
|
||||
if (m_ui->checkPassword->isChecked()) {
|
||||
if (!m_ui->editPassword->text().isEmpty() || m_retryUnlockWithEmptyPassword) {
|
||||
password = m_ui->editPassword->text();
|
||||
}
|
||||
|
||||
if (m_ui->checkKeyFile->isChecked()) {
|
||||
if (!m_ui->comboKeyFile->currentText().isEmpty() && m_ui->comboKeyFile->currentData() != -1) {
|
||||
keyFileName = m_ui->comboKeyFile->currentText();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue