1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 17:38:39 +00:00

PaginatedWithButtons fix, fixes #306

This commit is contained in:
Dusan Klinec 2019-07-08 16:59:13 +02:00
parent 430eaaefec
commit 67212a0d2e
No known key found for this signature in database
GPG Key ID: 6337E118CCBCE103

View File

@ -135,13 +135,13 @@ class PageWithButtons(ui.Control):
if self.index == 0:
self.paginated.on_cancel()
else:
self.paginated.on_down()
self.paginated.on_up()
def on_right(self):
if self.index == self.count - 1:
self.paginated.on_confirm()
else:
self.paginated.on_up()
self.paginated.on_down()
class PaginatedWithButtons(ui.Layout):