From eec434ecaab025fe639cd4f45794d650752e3c8c Mon Sep 17 00:00:00 2001 From: ardocrat Date: Sat, 18 May 2024 14:29:33 +0300 Subject: [PATCH] scan: clear state on modal opening --- src/gui/views/wallets/wallet/content.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/views/wallets/wallet/content.rs b/src/gui/views/wallets/wallet/content.rs index 6a2ef73..cefe39c 100644 --- a/src/gui/views/wallets/wallet/content.rs +++ b/src/gui/views/wallets/wallet/content.rs @@ -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)