scan: seed_qr format support

This commit is contained in:
ardocrat
2024-05-25 11:59:39 +03:00
parent 8ccfa8f7fd
commit 479ad82d9b
3 changed files with 69 additions and 11 deletions
+2 -6
View File
@@ -371,11 +371,7 @@ impl WalletContent {
cb: &dyn PlatformCallbacks) {
// Show scan result if exists or show camera content while scanning.
if let Some(result) = &self.qr_scan_result {
let mut result_text = match result {
QrScanResult::Slatepack(t) => t,
QrScanResult::Address(t) => t,
QrScanResult::Text(t) => t
}.to_string();
let mut result_text = result.value();
View::horizontal_line(ui, Colors::ITEM_STROKE);
ui.add_space(3.0);
ScrollArea::vertical()
@@ -431,7 +427,7 @@ impl WalletContent {
return;
}
}
QrScanResult::Text(_) => {}
_ => {}
}
// Set result and rename modal title.