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 305fd24a8e
commit f61f55fff7
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

View File

@ -991,7 +991,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 =