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