From 2fb3bffc8f78e4ac62775c70f511f831efcf4e89 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Thu, 6 Jun 2024 07:47:01 +0300 Subject: [PATCH] fix: qr gif creation button callback --- src/gui/views/qr.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/views/qr.rs b/src/gui/views/qr.rs index 0d43a8a..041e407 100644 --- a/src/gui/views/qr.rs +++ b/src/gui/views/qr.rs @@ -171,8 +171,10 @@ impl QrCodeContent { share_text, Colors::blue(), Colors::white_or_black(false), || { - let mut w_state = self.qr_image_state.write(); - w_state.exporting = true; + { + let mut w_state = self.qr_image_state.write(); + w_state.exporting = true; + } // Create GIF to export. self.create_qr_gif(text, DEFAULT_QR_SIZE as usize); });