1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-21 22:08:08 +00:00

fix(core): do not handle click signal in non-debug builds (fixes #3026)

[no changelog]
This commit is contained in:
matejcik 2023-05-22 11:19:46 +02:00 committed by matejcik
parent 97d8ff7c2c
commit 1cb0bf01e6

View File

@ -29,13 +29,14 @@ class HomescreenBase(RustLayout):
else: else:
self._paint() self._paint()
# In __debug__ mode, ignore {confirm,swipe,input}_signal. if __debug__:
def create_tasks(self) -> tuple[loop.AwaitableTask, ...]: # In __debug__ mode, ignore {confirm,swipe,input}_signal.
return ( def create_tasks(self) -> tuple[loop.AwaitableTask, ...]:
self.handle_timers(), return (
self.handle_input_and_rendering(), self.handle_timers(),
self.handle_click_signal(), # so we can receive debug events self.handle_input_and_rendering(),
) self.handle_click_signal(), # so we can receive debug events
)
class Homescreen(HomescreenBase): class Homescreen(HomescreenBase):