mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 05:28:40 +00:00
fix call to protectButton while showing segwit warning
This commit is contained in:
parent
d70ac623a4
commit
dcceec806d
@ -593,7 +593,7 @@ void fsm_msgGetAddress(GetAddress *msg)
|
||||
if (msg->has_show_display && msg->show_display) {
|
||||
if (is_segwit) {
|
||||
layoutSegwitWarning();
|
||||
if (!protectButton(ButtonRequestType_ButtonRequest_Address, true)) {
|
||||
if (!protectButton(ButtonRequestType_ButtonRequest_Address, false)) {
|
||||
fsm_sendFailure(FailureType_Failure_ActionCancelled, "Show address cancelled");
|
||||
layoutHome();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user