1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-27 01:48:17 +00:00

src/apps/common: store debug signals in cache

Prevents unloading through unimport.
This commit is contained in:
Jan Pochyla 2018-02-21 15:04:49 +01:00
parent d49fa2fb9c
commit b5e142307b
3 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,6 @@
_seed, _state = None, None
memory = {}
_seed = None
_state = None
def get_state():

View File

@ -1,9 +1,10 @@
from trezor import wire, ui, loop
from apps.common import cache
# used to confirm/cancel the dialogs from outside of this module (i.e.
# through debug link)
if __debug__:
signal = loop.signal()
signal = cache.memory.setdefault('confirm_signal', loop.signal())
@ui.layout

View File

@ -1,9 +1,10 @@
from trezor import wire, ui, loop
from apps.common import cache
# used to confirm/cancel the dialogs from outside of this module (i.e.
# through debug link)
if __debug__:
signal = loop.signal()
signal = cache.memory.setdefault('request_words_signal', loop.signal())
@ui.layout