Passkeys: Enable Import Passkey entry menu item only if a single entry is selected

This commit is contained in:
varjolintu 2024-03-13 22:55:41 +02:00 committed by Jonathan White
parent c34098546d
commit 9329df2b48

View file

@ -957,7 +957,7 @@ void MainWindow::setMenuActionState(DatabaseWidget::Mode mode)
#ifdef WITH_XC_BROWSER_PASSKEYS
m_ui->actionPasskeys->setEnabled(true);
m_ui->actionImportPasskey->setEnabled(true);
m_ui->actionEntryImportPasskey->setEnabled(true);
m_ui->actionEntryImportPasskey->setEnabled(singleEntrySelected);
#endif
#ifdef WITH_XC_SSHAGENT
bool singleEntryHasSshKey =