From f382f77c89ef925c09a9027dafffda313c04b3ca Mon Sep 17 00:00:00 2001 From: Andrew Kozlik Date: Thu, 25 Jun 2020 11:39:40 +0200 Subject: [PATCH] core/ui: Fix repaint bug in QR code rendering #1067. --- core/ChangeLog | 1 + core/src/trezor/ui/qr.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/ChangeLog b/core/ChangeLog index b21963847f..777f0e0b5e 100644 --- a/core/ChangeLog +++ b/core/ChangeLog @@ -19,6 +19,7 @@ _Most likely to be released on July 1st._ ### Fixed - Fix cancel icon in PIN dialog. #1042 +- Fix repaint bug in QR code rendering. #1067 ### Security diff --git a/core/src/trezor/ui/qr.py b/core/src/trezor/ui/qr.py index 73ca541a11..5f5e31c5e9 100644 --- a/core/src/trezor/ui/qr.py +++ b/core/src/trezor/ui/qr.py @@ -9,4 +9,6 @@ class Qr(ui.Component): self.scale = scale def on_render(self) -> None: - ui.display.qrcode(self.x, self.y, self.data.encode(), self.scale) + if self.repaint: + ui.display.qrcode(self.x, self.y, self.data.encode(), self.scale) + self.repaint = False