mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-17 21:22:10 +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
|
||||
|
||||
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)
|
||||
log.debug(__name__, "Watch layout changes: %s", storage.watch_layout_changes)
|
||||
return Success()
|
||||
|
Loading…
Reference in New Issue
Block a user