fix(core): use buttons__cancel in Delizia menu to cancel PIN setup
What changed, and why it matters
This is a tiny user-interface wording fix in the Trezor hardware wallet firmware. It changes the label on one menu button from a long translated phrase ('cancel setup') to a shorter generic word ('Cancel') so that translations fit on screen. There is no direct evidence this is a security vulnerability; it is a UI polish fix that may slightly reduce user confusion when setting up a PIN.
No security action required. Treat as a normal UI fix. If reviewing, verify that the shorter 'buttons__cancel' translation is semantically equivalent for the PIN-setup cancellation context and fits the menu constraints.
Security signals we found
UI wording change only
No logic or cryptographic change
No changelog entry (suggests minor fix)
Commit title frames issue as translation/fit problem, not security
Evidence from the diff
In the Delizia layout flow for confirming a new PIN/wipe code, the code constructs a menu with two choices. Previously both choices used TR::pin__cancel_setup, which can be too long in some translations. The patch replaces the second occurrence with TR::buttons__cancel, matching the existing wipe-code setup path. This is a one-line string-resource change; no logic, cryptography, or access control is altered.
Changed components
core/embed/rust/src/ui/layout_delizia/flow/confirm_set_new_code.rsInspect captured patch +1 / −1
### core/embed/rust/src/ui/layout_delizia/flow/confirm_set_new_code.rs
@@ -60,7 +60,7 @@ pub fn new_set_new_code(is_wipe_code: bool) -> Result<SwipeFlow, Error> {
TR::pin__title_settings,
TR::pin__turn_on,
TR::pin__cancel_setup,
- TR::pin__cancel_setup,
+ TR::buttons__cancel,
)
};
let paragraphs = Paragraphs::new(Paragraph::new(&theme::TEXT_MAIN_GREY_LIGHT, description));Why this scored 18/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.