Skip to content

Commit

Permalink
Always return to main menu at the end of get_wallet_address
Browse files Browse the repository at this point in the history
  • Loading branch information
bigspider committed Sep 9, 2024
1 parent ec81a03 commit 9aa37f7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"C_Cpp.clang_format_path": "/usr/bin/clang-format",
"editor.formatOnSave": true,
"ledgerDevTools.appSettings": {
"selectedUseCase": "release"
"selectedUseCase": "release",
"selectedDevice": "Nano S",
"selectedVariant": "bitcoin_testnet"
}
}
8 changes: 8 additions & 0 deletions src/handler/get_wallet_address.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,5 +217,13 @@ void handler_get_wallet_address(dispatcher_context_t *dc, uint8_t protocol_versi
}

SEND_RESPONSE(dc, address, address_len, SW_OK);

#ifdef HAVE_NBGL
// Workaround for a glitch when get_wallet_address is called right after a UX flow that has
// a long confirmation screen (e.g. register_wallet), as processing this command sometimes
// lead to the "Processing..." screen not being cleared at the end of the command.
// This only happens on Flex and Stax.
ui_menu_main();
#endif
}
}

0 comments on commit 9aa37f7

Please sign in to comment.