diff --git a/core/ChangeLog b/core/ChangeLog index b21963847fc..777f0e0b5e8 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 73ca541a110..5f5e31c5e9e 100644 --- a/core/src/trezor/ui/qr.py +++ b/core/src/trezor/ui/qr.py @@ -9,4 +9,6 @@ def __init__(self, data: str, x: int, y: int, scale: int): 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