1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 06:18:07 +00:00

core/ui: Fix repaint bug in QR code rendering #1067.

This commit is contained in:
Andrew Kozlik 2020-06-25 11:39:40 +02:00 committed by Andrew Kozlik
parent 312d6ea822
commit f382f77c89
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -9,4 +9,6 @@ class Qr(ui.Component):
self.scale = scale
def on_render(self) -> None:
if self.repaint:
ui.display.qrcode(self.x, self.y, self.data.encode(), self.scale)
self.repaint = False