mirror of
https://github.com/trezor/trezor-firmware.git
synced 2026-02-20 00:33:30 +01:00
chore(core): hide empty "info" button on Caesar confirm_with_info()
[no changelog]
This commit is contained in:
@@ -586,7 +586,11 @@ impl ButtonLayout {
|
|||||||
Self::new(
|
Self::new(
|
||||||
Some(ButtonDetails::from_text_possible_icon(left)),
|
Some(ButtonDetails::from_text_possible_icon(left)),
|
||||||
Some(ButtonDetails::armed_text(middle)),
|
Some(ButtonDetails::armed_text(middle)),
|
||||||
Some(ButtonDetails::from_text_possible_icon(right)),
|
if right.is_empty() {
|
||||||
|
None
|
||||||
|
} else {
|
||||||
|
Some(ButtonDetails::from_text_possible_icon(right))
|
||||||
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -604,7 +608,11 @@ impl ButtonLayout {
|
|||||||
Self::new(
|
Self::new(
|
||||||
Some(ButtonDetails::cancel_icon()),
|
Some(ButtonDetails::cancel_icon()),
|
||||||
Some(ButtonDetails::armed_text(middle)),
|
Some(ButtonDetails::armed_text(middle)),
|
||||||
Some(ButtonDetails::from_text_possible_icon(right)),
|
if right.is_empty() {
|
||||||
|
None
|
||||||
|
} else {
|
||||||
|
Some(ButtonDetails::from_text_possible_icon(right))
|
||||||
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -722,7 +722,7 @@ async def should_show_more(
|
|||||||
Raises ActionCancelled if the user cancels.
|
Raises ActionCancelled if the user cancels.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if button_text != DOWN_ARROW:
|
if button_text not in (DOWN_ARROW, ""):
|
||||||
button_text = INFO_ICON
|
button_text = INFO_ICON
|
||||||
result = await interact(
|
result = await interact(
|
||||||
trezorui_api.confirm_with_info(
|
trezorui_api.confirm_with_info(
|
||||||
|
|||||||
Reference in New Issue
Block a user