Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Commit

Permalink
xmr: iface cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Sep 13, 2018
1 parent b037339 commit c7c8d3c
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/apps/monero/controller/iface.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,23 +87,14 @@ async def confirm_transaction(self, tsx_data, creds=None, ctx=None):

await ui.backlight_slide(BACKLIGHT_DIM)
slide = ui.backlight_slide(BACKLIGHT_NORMAL)
# await ui.backlight_slide(BACKLIGHT_NORMAL)

text = Text("Signing transaction", ui.ICON_SEND, icon_color=ui.BLUE)
text.normal("Signing...")

try:
layout = await layout.simple_text(text, tm=500)
log.debug(__name__, "layout: %s", layout)
workflow.closedefault()
workflow.onlayoutstart(layout)
loop.schedule(slide)
# display.clear()

finally:
pass
# loop.close(slide)
# workflow.onlayoutclose(layout)
layout = await layout.simple_text(text, tm=500)
workflow.closedefault()
workflow.onlayoutstart(layout)
loop.schedule(slide)

await loop.sleep(200 * 1000)
return True
Expand Down

0 comments on commit c7c8d3c

Please sign in to comment.