1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 13:38:12 +00:00

debuglink: allow clearing input_flow function

This commit is contained in:
matejcik 2019-02-01 14:27:52 +01:00
parent 50b302dfec
commit 42583eaceb

View File

@ -240,6 +240,10 @@ class TrezorClientDebugLink(TrezorClient):
return msg
def set_input_flow(self, input_flow):
if input_flow is None:
self.ui.input_flow = None
return
if callable(input_flow):
input_flow = input_flow()
if not hasattr(input_flow, "send"):