mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-23 22:01:01 +00:00
Merge pull request #425 from trezor/tsusanka/iss387-init-fix
core: fix initialized to be unrelated to recovery
This commit is contained in:
commit
b65cabc67c
@ -1,7 +1,7 @@
|
|||||||
from trezor import config
|
from trezor import config
|
||||||
|
|
||||||
from apps.common import cache
|
from apps.common import cache
|
||||||
from apps.common.storage import common, device, recovery
|
from apps.common.storage import common, device
|
||||||
|
|
||||||
|
|
||||||
def set_current_version() -> None:
|
def set_current_version() -> None:
|
||||||
@ -9,7 +9,7 @@ def set_current_version() -> None:
|
|||||||
|
|
||||||
|
|
||||||
def is_initialized() -> bool:
|
def is_initialized() -> bool:
|
||||||
return device.is_version_stored() and not recovery.is_in_progress()
|
return device.is_version_stored()
|
||||||
|
|
||||||
|
|
||||||
def wipe() -> None:
|
def wipe() -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user