mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-05 21:47:38 +03:00
Passkeys: Add support for importing Passkey to entry (#9987)
--------- Co-authored-by: Jonathan White <support@dmapps.us>
This commit is contained in:
parent
013db199cb
commit
13c88e1013
27 changed files with 459 additions and 176 deletions
|
@ -1407,10 +1407,20 @@ void DatabaseWidget::switchToPasskeys()
|
|||
m_reportsDialog->activatePasskeysPage();
|
||||
}
|
||||
|
||||
void DatabaseWidget::switchToImportPasskey()
|
||||
void DatabaseWidget::showImportPasskeyDialog(bool isEntry)
|
||||
{
|
||||
PasskeyImporter passkeyImporter;
|
||||
passkeyImporter.importPasskey(m_db);
|
||||
|
||||
if (isEntry) {
|
||||
auto currentEntry = currentSelectedEntry();
|
||||
if (!currentEntry) {
|
||||
return;
|
||||
}
|
||||
|
||||
passkeyImporter.importPasskey(m_db, currentEntry);
|
||||
} else {
|
||||
passkeyImporter.importPasskey(m_db);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue