mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 14:28:07 +00:00
core/lockscreen: ignore exception when user taps "unlock" and then cancels
This commit is contained in:
parent
7ff1251ee1
commit
a4f47ddd21
@ -1,4 +1,4 @@
|
|||||||
from trezor import loop, res, ui
|
from trezor import loop, res, ui, wire
|
||||||
|
|
||||||
from . import HomescreenBase
|
from . import HomescreenBase
|
||||||
|
|
||||||
@ -10,7 +10,10 @@ async def lockscreen() -> None:
|
|||||||
if can_lock_device():
|
if can_lock_device():
|
||||||
await Lockscreen()
|
await Lockscreen()
|
||||||
|
|
||||||
await unlock_device()
|
try:
|
||||||
|
await unlock_device()
|
||||||
|
except wire.PinCancelled:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class Lockscreen(HomescreenBase):
|
class Lockscreen(HomescreenBase):
|
||||||
|
Loading…
Reference in New Issue
Block a user