scan: clear state on modal opening
This commit is contained in:
parent
0765cb8e30
commit
eec434ecaa
1 changed files with 1 additions and 0 deletions
|
@ -196,6 +196,7 @@ impl WalletContent {
|
|||
// Draw button to scan QR code.
|
||||
View::item_button(ui, View::item_rounding(0, 2, true), SCAN, None, || {
|
||||
self.qr_scan_result = None;
|
||||
self.camera_content.clear_state();
|
||||
// Show QR code scan modal.
|
||||
Modal::new(QR_CODE_SCAN_MODAL)
|
||||
.position(ModalPosition::CenterTop)
|
||||
|
|
Loading…
Reference in a new issue