From d4b4b5e830fbfe93bbf39e8a4a7734f8cff3006a Mon Sep 17 00:00:00 2001 From: Alexandre Paillier Date: Tue, 8 Nov 2022 18:06:32 +0100 Subject: [PATCH] Disable button clicks while waiting for EIP-712 APDU --- src_bagl/ui_flow_signMessage712.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src_bagl/ui_flow_signMessage712.c b/src_bagl/ui_flow_signMessage712.c index 8e0ee75..9769bb2 100644 --- a/src_bagl/ui_flow_signMessage712.c +++ b/src_bagl/ui_flow_signMessage712.c @@ -16,6 +16,10 @@ static void dummy_cb(void) { ux_flow_prev(); ui_pos = UI_712_POS_REVIEW; } + } else { + // temporarily disable button clicks, they will be re-enabled as soon as new data + // is received and the page is redrawn with ux_flow_init() + G_ux.stack[0].button_push_callback = NULL; } }