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

feat(core): make middle-click unlock the device for T2B1

[no changelog]
This commit is contained in:
grdddj 2023-10-23 14:16:10 +02:00 committed by Jiří Musil
parent 8a4f376f20
commit 37fcbceded

View File

@ -178,7 +178,9 @@ where
T: StringType + Clone,
{
pub fn new(label: T, bootscreen: bool) -> Self {
let invisible_btn_layout = ButtonLayout::text_none_text("".into(), "".into());
// Buttons will not be visible, we only need all three of them to be present,
// so that even middle-click triggers the event.
let invisible_btn_layout = ButtonLayout::arrow_armed_arrow("".into());
let instruction_str = if bootscreen {
"Click to Connect"
} else {