Skip to content

Commit 7cb95d4

Browse files
committed
qr: display the parent activity help when showing qr display options
Previously this would show help for blkstrm.com/scanjade - which is not useful when the user is displaying (and not scanning) a qrcode. Instead, show the help associated with the parent activity where the options button was selected from.
1 parent edc1777 commit 7cb95d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main/qrmode.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ static bool verify_address(const address_data_t* const addr_data)
826826
}
827827

828828
// Handle QR Options dialog - ie. QR size and frame-rate
829-
static bool handle_qr_options(uint32_t* qr_flags)
829+
static bool handle_qr_options(uint32_t* qr_flags, const char* help_url)
830830
{
831831
JADE_ASSERT(qr_flags);
832832

@@ -886,7 +886,7 @@ static bool handle_qr_options(uint32_t* qr_flags)
886886
}
887887
update_menu_item(framerate_item, "Frame Rate", qr_framerate_desc_from_flags(*qr_flags));
888888
} else if (ev_id == BTN_QR_OPTIONS_HELP) {
889-
await_qr_help_activity("blkstrm.com/scanjade");
889+
await_qr_help_activity(help_url);
890890
} else if (ev_id == BTN_QR_OPTIONS_EXIT) {
891891
// Done
892892
break;
@@ -953,7 +953,7 @@ static void display_bcur_qr(const char* message[], const size_t message_size, co
953953

954954
const int32_t ev_id = gui_activity_wait_button(act, BTN_QR_DISPLAY_EXIT);
955955
if (ev_id == BTN_QR_OPTIONS) {
956-
if (handle_qr_options(&qr_flags)) {
956+
if (handle_qr_options(&qr_flags, help_url)) {
957957
// Options were updated - re-create psbt qr screen
958958
display_processing_message_activity();
959959
act = create_display_bcur_qr_activity(

0 commit comments

Comments
 (0)