Skip to content

Commit 3a3fed1

Browse files
committed
Merge remote-tracking branch 'upstream/main' into merge-commits
2 parents a094e6a + 564500f commit 3a3fed1

File tree

12 files changed

+190
-43
lines changed

12 files changed

+190
-43
lines changed

core/src/apps/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ def get_vendor():
5959
return "trezor.io" if storage.device.is_trezor_compatible() else "onekey.so"
6060

6161

62+
FW_VENDOR_BTC_ONLY = "OneKey Bitcoin-only"
63+
64+
6265
def busy_expiry_ms() -> int:
6366
"""
6467
Returns the time left until the busy state expires or 0 if the device is not in the busy state.
@@ -131,6 +134,7 @@ def get_features() -> Features:
131134
Capability.Shamir,
132135
Capability.ShamirGroups,
133136
]
137+
f.fw_vendor = FW_VENDOR_BTC_ONLY
134138
else:
135139
f.capabilities = [
136140
Capability.Bitcoin,

core/src/apps/common/seed.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from typing import TYPE_CHECKING
22

3-
from storage import cache, device
3+
import storage.cache as cache
4+
import storage.device as device
45
from trezor import utils, wire
56
from trezor.crypto import bip32, hmac
67

@@ -112,6 +113,10 @@ async def derive_and_store_roots(ctx: wire.Context) -> None:
112113
else:
113114
passphrase_str = ""
114115

116+
from trezor.ui.layouts import show_popup
117+
from trezor.lvglui.i18n import gettext as _, keys as i18n_keys
118+
119+
await show_popup(_(i18n_keys.TITLE__PLEASE_WAIT), None, timeout_ms=1000)
115120
mnemonic.get_seed(passphrase_str, progress_bar=False)
116121

117122
if cache.SESSION_DIRIVE_CARDANO:

core/src/trezor/lvglui/i18n/locales/fr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,6 @@
10171017
"Mettez à jour vers la dernière version pour utiliser « Épingler ».",
10181018
"Demande de confirmation",
10191019
"Abandonner la création de la phrase de récupération ?",
1020-
"Ceci est l'Action {num1} sur {num2}.",
1020+
"Ceci est la part {num1} sur {num2}.",
10211021
]
10221022
# fmt: on

core/src/trezor/lvglui/i18n/locales/zh_hk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,6 @@
10171017
"更新到最新版本後,再使用\"Passphrase 綁定 PIN 碼\"功能。",
10181018
"確認請求",
10191019
"終止創建助記詞?",
1020-
"這是第 {num1} ,共 {num2} 。",
1020+
"這是第 {num1} ,共 {num2} 。",
10211021
]
10221022
# fmt: on

core/src/trezor/lvglui/scrs/common.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,8 @@ def add_nav_back(self):
539539
when you need to handle the back event specifically.
540540
"""
541541
self.nav_back = Navigation(self)
542-
self.content_area.set_style_max_height(574, 0)
542+
if any([hasattr(self, "btn_no"), hasattr(self, "btn_yes")]):
543+
self.content_area.set_style_max_height(574, 0)
543544
self.content_area.align_to(self.nav_back, lv.ALIGN.OUT_BOTTOM_LEFT, 0, 0)
544545

545546
def add_nav_back_right(self):
@@ -554,7 +555,8 @@ def add_nav_back_right(self):
554555
nav_btn_align=lv.ALIGN.RIGHT_MID,
555556
align=lv.ALIGN.TOP_RIGHT,
556557
)
557-
self.content_area.set_style_max_height(574, 0)
558+
if any([hasattr(self, "btn_no"), hasattr(self, "btn_yes")]):
559+
self.content_area.set_style_max_height(574, 0)
558560
self.content_area.align_to(self.nav_back, lv.ALIGN.OUT_BOTTOM_RIGHT, 0, 0)
559561

560562
def eventhandler(self, event_obj):

0 commit comments

Comments
 (0)