1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-19 12:58:13 +00:00

fix(core/ui): T3T1: wrong XPUB title

[no changelog]
This commit is contained in:
Martin Milata 2024-06-06 14:48:56 +02:00
parent b868ccbbdd
commit 3760dd307c
6 changed files with 1156 additions and 1153 deletions

View File

@ -142,7 +142,7 @@ pub extern "C" fn new_get_address(n_args: usize, args: *const Obj, kwargs: *mut
impl GetAddress {
fn new_obj(_args: &[Obj], kwargs: &Map) -> Result<Obj, error::Error> {
let title: TString = "Receive address".into(); // TODO: address__title_receive_address w/o uppercase
let title: TString = kwargs.get(Qstr::MP_QSTR_title)?.try_into()?;
let description: Option<TString> =
kwargs.get(Qstr::MP_QSTR_description)?.try_into_option()?;
let extra: Option<TString> = kwargs.get(Qstr::MP_QSTR_extra)?.try_into_option()?;

View File

@ -1826,6 +1826,7 @@ pub static mp_module_trezorui2: Module = obj_module! {
/// def flow_get_address(
/// *,
/// address: str | bytes,
/// title: str,
/// description: str | None,
/// extra: str | None,
/// chunkify: bool,

View File

@ -547,6 +547,7 @@ def show_wait_text(message: str, /) -> LayoutObj[None]:
def flow_get_address(
*,
address: str | bytes,
title: str,
description: str | None,
extra: str | None,
chunkify: bool,

View File

@ -469,6 +469,7 @@ async def show_address(
RustLayout(
trezorui2.flow_get_address(
address=address,
title=title or TR.address__title_receive_address,
description=network or "",
extra=None,
chunkify=chunkify,

View File

@ -644,7 +644,7 @@ class InputFlowShowXpubQRCode(InputFlowBase):
br = yield
layout = self.debug.wait_layout()
TR.assert_in(layout.title(), "address__title_receive_address")
assert layout.title() in TR.translate("address__public_key") + ["XPUB"]
self.debug.click(buttons.CORNER_BUTTON, wait=True)
assert "VerticalMenu" in self.all_components()

File diff suppressed because it is too large Load Diff