Skip to content

Commit

Permalink
refactor: reset last selected item on menus exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Otrebor671 committed Sep 2, 2024
1 parent 5f8ab3a commit dd925de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions firmware/main/modules/menus_module/menus_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ static void navigation_exit() {
screen_saver_run();
return;
}
menus[get_menu_idx(menus_ctx->current_menu)].last_selected_submenu =
menus_ctx->selected_submenu;
menus[get_menu_idx(menus_ctx->current_menu)].last_selected_submenu = 0;
void (*cb)() = menus[get_menu_idx(menus_ctx->current_menu)].on_exit_cb;
if (cb) {
cb();
Expand Down

0 comments on commit dd925de

Please sign in to comment.