I think there is a caching issue in the smartcard dialog.
- Move a key to a Yubikey (primary and sub)
- Take a backup of the public key
- Delete the key in Kleopatra (ie. private and public)
Smartcard dialog does not show the OpenPGP parts anymore
- Import the public key
- In the smartcard dialog hit F5
Smartcard dialog still does not show the key. This is even the case after running "gpg --card-status" on the command line, which correcly shows the key.
- Restart Kleopatra
Smartcard dialog shows the keys.
Tested on Windows using Yubikey with firmware version 5.4.3 and Brainpool curves.