Skip to content

Commit

Permalink
core/ui: Fix repaint bug in QR code rendering #1067.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkozlik committed Jun 25, 2020
1 parent 312d6ea commit f382f77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion core/src/trezor/ui/qr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f382f77

Please sign in to comment.