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