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:
parent
97d8ff7c2c
commit
1cb0bf01e6
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user