1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-21 13:58: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:
self._paint()
# In __debug__ mode, ignore {confirm,swipe,input}_signal.
def create_tasks(self) -> tuple[loop.AwaitableTask, ...]:
return (
self.handle_timers(),
self.handle_input_and_rendering(),
self.handle_click_signal(), # so we can receive debug events
)
if __debug__:
# In __debug__ mode, ignore {confirm,swipe,input}_signal.
def create_tasks(self) -> tuple[loop.AwaitableTask, ...]:
return (
self.handle_timers(),
self.handle_input_and_rendering(),
self.handle_click_signal(), # so we can receive debug events
)
class Homescreen(HomescreenBase):