Build 62: fix the in-field QR scan icon not opening the scanner
Build 60 moved the scan-to-pay screen behind a new `scan_open` flag (for the Scan | My Code toggle), but the recipient picker (Send to / Request from) still opened the scanner by setting only `self.scan` — which no longer gates the screen. So tapping the QR icon in the search field silently started the camera and showed nothing. Set `scan_open` + the Scan tab there too (keeping `scan` so the Scan branch does not double-start the camera).
This commit is contained in:
@@ -375,6 +375,11 @@ impl SendFlow {
|
||||
});
|
||||
});
|
||||
if open_scan {
|
||||
// The field's scan_qr already started the camera; open the scan-to-pay
|
||||
// screen on the Scan tab so the feed actually shows (the screen is gated
|
||||
// on `scan_open`, not `scan`).
|
||||
self.scan_open = true;
|
||||
self.scan_tab = ScanTab::Scan;
|
||||
self.scan = Some(CameraContent::default());
|
||||
self.error = None;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user