mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-26 09:52:34 +00:00
fix(core/debug): only wait for layout when _enabling_ watch_layout
This commit is contained in:
parent
319d0f16e3
commit
bbf286e050
1
core/.changelog.d/2135.changed
Normal file
1
core/.changelog.d/2135.changed
Normal file
@ -0,0 +1 @@
|
|||||||
|
\[debuglink] Do not wait for screen refresh when _disabling_ layout watching.
|
@ -114,7 +114,8 @@ if __debug__:
|
|||||||
from trezor import ui
|
from trezor import ui
|
||||||
|
|
||||||
layout_change_chan.putters.clear()
|
layout_change_chan.putters.clear()
|
||||||
await ui.wait_until_layout_is_running()
|
if msg.watch:
|
||||||
|
await ui.wait_until_layout_is_running()
|
||||||
storage.watch_layout_changes = bool(msg.watch)
|
storage.watch_layout_changes = bool(msg.watch)
|
||||||
log.debug(__name__, "Watch layout changes: %s", storage.watch_layout_changes)
|
log.debug(__name__, "Watch layout changes: %s", storage.watch_layout_changes)
|
||||||
return Success()
|
return Success()
|
||||||
|
Loading…
Reference in New Issue
Block a user