keyfork-shard: break loop when receiving valid QR code

This commit is contained in:
Ryan Heywood 2025-03-25 20:15:40 -04:00
parent 020fa4d25e
commit d0019a93f0
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
1 changed files with 1 additions and 0 deletions

View File

@ -578,6 +578,7 @@ pub fn remote_decrypt(w: &mut impl Write) -> Result<(), Box<dyn std::error::Erro
let _ =
pubkey_data.insert(decoded_data[..32].try_into().map_err(|_| InvalidData)?);
let _ = payload_data.insert(decoded_data[32..].to_vec());
break;
} else {
let choice = keyfork_prompt::prompt_choice(
&mut *pm,