core: only softlock when PIN is set

pull/971/head
matejcik 4 years ago committed by matejcik
parent a9ddc2a8e2
commit b9bd9ea3d0

@ -130,9 +130,10 @@ def set_homescreen() -> None:
def lock_device() -> None:
config.lock()
set_homescreen()
wire.find_handler = get_pinlocked_handler
if config.has_pin():
config.lock()
set_homescreen()
wire.find_handler = get_pinlocked_handler
async def unlock_device(ctx: wire.GenericContext = wire.DUMMY_CONTEXT) -> None:

Loading…
Cancel
Save