Skip to content

Commit

Permalink
Add the error message about the slot on the Open Database page.
Browse files Browse the repository at this point in the history
Fixes #11543
  • Loading branch information
w15dev committed Jan 1, 2025
1 parent de84278 commit 2f7c9de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/gui/DatabaseOpenWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ void DatabaseOpenWidget::toggleHardwareKeyComponent(bool state)
m_ui->hardwareKeyProgress->setVisible(false);
m_ui->hardwareKeyComponent->setVisible(state);
m_ui->hardwareKeyCombo->setVisible(state && m_ui->hardwareKeyCombo->count() != 1);

m_ui->noHardwareKeysFoundLabel->setText(YubiKey::instance()->findConnectedKeys()
? tr("Hardware keys found, but no slots are configured")
: tr("No hardware keys detected"));

m_ui->noHardwareKeysFoundLabel->setVisible(!state && m_manualHardwareKeyRefresh);
if (!state) {
m_ui->useHardwareKeyCheckBox->setChecked(false);
Expand Down
2 changes: 1 addition & 1 deletion src/gui/DatabaseOpenWidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
</sizepolicy>
</property>
<property name="text">
<string>No hardware keys found.</string>
<string>No hardware keys detected</string>
</property>
<property name="margin">
<number>1</number>
Expand Down

0 comments on commit 2f7c9de

Please sign in to comment.