Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: trezor/trezor-firmware
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cb66277dc1fcfd170a1dcaf3cd4b099c419f9299
Choose a base ref
..
head repository: trezor/trezor-firmware
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5a898c58cae66d7cdc07b30b81450fac10c1c030
Choose a head ref
Showing with 4 additions and 6 deletions.
  1. +4 −6 core/embed/rust/src/ui/layout_samson/component/page.rs
10 changes: 4 additions & 6 deletions core/embed/rust/src/ui/layout_samson/component/page.rs
Original file line number Diff line number Diff line change
@@ -179,13 +179,11 @@ where
// Clicked BACK. Scroll up.
self.go_to_previous_page();
self.change_page(ctx);
} else if self.cancel_btn_details.is_some() {
// Clicked CANCEL. Send result.
return Some(PageMsg::Cancelled);
} else {
if self.cancel_btn_details.is_some() {
// Clicked CANCEL. Send result.
return Some(PageMsg::Cancelled);
} else {
return None;
}
return None;
}
}
ButtonPos::Right => {