1
0
forked from GRIN/grim

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:
2ro
2026-06-14 00:58:01 -04:00
parent fc348c1843
commit 63bf92f172
+5
View File
@@ -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;
}