Skip to content

Commit

Permalink
ux: remove useless wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
sgliner-ledger committed Nov 24, 2023
1 parent 9097031 commit 7556749
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/monero_ux_nano.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,10 +659,6 @@ void ui_menu_pubaddr_display(unsigned int value) {
}
}

static void exit(void) {
app_exit();
}

#undef ADDR_TYPE
#undef ADDR_MAJOR
#undef ADDR_MINOR
Expand All @@ -682,7 +678,7 @@ UX_STEP_CB(ux_menu_main_2_step, pb,

UX_STEP_CB(ux_menu_main_3_step, pb, ui_menu_about_display(), {&C_icon_certificate, "About"});

UX_STEP_CB(ux_menu_main_4_step, pb, exit(), {&C_icon_dashboard_x, "Quit app"});
UX_STEP_CB(ux_menu_main_4_step, pb, app_exit(), {&C_icon_dashboard_x, "Quit app"});

UX_FLOW(ux_flow_main, &ux_menu_main_1_step, &ux_menu_main_2_step, &ux_menu_main_3_step,
&ux_menu_main_4_step);
Expand Down
6 changes: 1 addition & 5 deletions src/monero_ux_stax_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ static void update_account(void) {
G_monero_vstate.disp_addr_m = 0;
}

static void exit(void) {
app_exit();
}

static bool settings_navigation_cb(uint8_t page, nbgl_pageContent_t* content) {
if (page == 0) {
content->type = BARS_LIST;
Expand Down Expand Up @@ -253,7 +249,7 @@ void ui_menu_main_display(void) {
NULL);

nbgl_useCaseHomeExt("Monero", &C_Monero_64px, NULL, true, transactionContext.buffer,
display_account, display_settings_menu, exit);
display_account, display_settings_menu, app_exit);
}

/* --- INIT --- */
Expand Down

0 comments on commit 7556749

Please sign in to comment.