mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-22 05:10:56 +00:00
trezor.ui: fix confirm
This commit is contained in:
parent
80b83add73
commit
0723f6c198
@ -33,7 +33,8 @@ class ConfirmDialog(Widget):
|
|||||||
return CANCELLED
|
return CANCELLED
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
yield loop.Wait((super().__iter__(), self.content))
|
result = yield loop.Wait((super().__iter__(), self.content))
|
||||||
|
return result
|
||||||
|
|
||||||
|
|
||||||
class HoldToConfirmDialog(Widget):
|
class HoldToConfirmDialog(Widget):
|
||||||
@ -67,9 +68,9 @@ class HoldToConfirmDialog(Widget):
|
|||||||
if self.content is not None:
|
if self.content is not None:
|
||||||
return self.content.send(event, pos)
|
return self.content.send(event, pos)
|
||||||
|
|
||||||
async def __iter__(self):
|
def __iter__(self):
|
||||||
return await loop.Wait([self._render_loop(),
|
result = yield loop.Wait((self._render_loop(), self._event_loop()))
|
||||||
self._event_loop()])
|
return result
|
||||||
|
|
||||||
def _render_loop(self):
|
def _render_loop(self):
|
||||||
RENDER_DELAY = const(1000000 // 60)
|
RENDER_DELAY = const(1000000 // 60)
|
||||||
|
Loading…
Reference in New Issue
Block a user