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:
parent
d49fa2fb9c
commit
b5e142307b
@ -1,4 +1,6 @@
|
||||
_seed, _state = None, None
|
||||
memory = {}
|
||||
_seed = None
|
||||
_state = None
|
||||
|
||||
|
||||
def get_state():
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user