mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-13 10:08:08 +00:00
core: only softlock when PIN is set
This commit is contained in:
parent
a9ddc2a8e2
commit
b9bd9ea3d0
@ -130,6 +130,7 @@ def set_homescreen() -> None:
|
|||||||
|
|
||||||
|
|
||||||
def lock_device() -> None:
|
def lock_device() -> None:
|
||||||
|
if config.has_pin():
|
||||||
config.lock()
|
config.lock()
|
||||||
set_homescreen()
|
set_homescreen()
|
||||||
wire.find_handler = get_pinlocked_handler
|
wire.find_handler = get_pinlocked_handler
|
||||||
|
Loading…
Reference in New Issue
Block a user