Skip to content

Commit

Permalink
Passkeys: Enable Import Passkey entry menu item only if a single entr…
Browse files Browse the repository at this point in the history
…y is selected
  • Loading branch information
varjolintu authored and droidmonkey committed Mar 31, 2024
1 parent c340985 commit 9329df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 9329df2

Please sign in to comment.