1
0
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:
matejcik 2022-02-18 15:43:55 +01:00 committed by matejcik
parent 319d0f16e3
commit bbf286e050
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1 @@
\[debuglink] Do not wait for screen refresh when _disabling_ layout watching.

View File

@ -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()