mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-24 23:48:13 +00:00
fix(core): Eckhart doesn't have a separate confirm page
[no changelog]
This commit is contained in:
parent
9643253630
commit
c01b56a5a0
@ -110,8 +110,7 @@ pub fn new_get_address(
|
|||||||
TextScreenMsg::Confirmed => Some(FlowMsg::Confirmed),
|
TextScreenMsg::Confirmed => Some(FlowMsg::Confirmed),
|
||||||
TextScreenMsg::Menu => Some(FlowMsg::Info),
|
TextScreenMsg::Menu => Some(FlowMsg::Info),
|
||||||
})
|
})
|
||||||
.one_button_request(ButtonRequest::from_num(br_code, br_name))
|
.one_button_request(ButtonRequest::from_num(br_code, br_name));
|
||||||
.with_pages(|address_pages| address_pages + 1);
|
|
||||||
|
|
||||||
// Menu
|
// Menu
|
||||||
let content_menu = VerticalMenuScreen::new(
|
let content_menu = VerticalMenuScreen::new(
|
||||||
|
@ -921,10 +921,10 @@ class InputFlowShowXpubQRCode(InputFlowBase):
|
|||||||
br = yield
|
br = yield
|
||||||
layout = self.debug.read_layout()
|
layout = self.debug.read_layout()
|
||||||
|
|
||||||
# In case of page overflow, paginete to the last page
|
# In case of page overflow, paginate to the last page
|
||||||
# The last page is the confirm page
|
# The last page is the confirm page
|
||||||
if br.pages > 2:
|
if br.pages > 1:
|
||||||
for _ in range(br.pages - 2):
|
for _ in range(br.pages - 1):
|
||||||
self.debug.click(self.debug.screen_buttons.ok())
|
self.debug.click(self.debug.screen_buttons.ok())
|
||||||
|
|
||||||
assert layout.subtitle() in (TR.address__public_key, "XPUB")
|
assert layout.subtitle() in (TR.address__public_key, "XPUB")
|
||||||
|
Loading…
Reference in New Issue
Block a user