mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 06:48:16 +00:00
Merge pull request #318 from ph4r05/pr/scrollFix306
PaginatedWithButtons fix, fixes #306
This commit is contained in:
commit
64439cda03
@ -135,13 +135,13 @@ class PageWithButtons(ui.Control):
|
|||||||
if self.index == 0:
|
if self.index == 0:
|
||||||
self.paginated.on_cancel()
|
self.paginated.on_cancel()
|
||||||
else:
|
else:
|
||||||
self.paginated.on_down()
|
self.paginated.on_up()
|
||||||
|
|
||||||
def on_right(self):
|
def on_right(self):
|
||||||
if self.index == self.count - 1:
|
if self.index == self.count - 1:
|
||||||
self.paginated.on_confirm()
|
self.paginated.on_confirm()
|
||||||
else:
|
else:
|
||||||
self.paginated.on_up()
|
self.paginated.on_down()
|
||||||
|
|
||||||
|
|
||||||
class PaginatedWithButtons(ui.Layout):
|
class PaginatedWithButtons(ui.Layout):
|
||||||
|
Loading…
Reference in New Issue
Block a user