menu.c fix redraw bug

fix redraw bug added with c39f95465

Change-Id: I9ce232d4b760f20edb6f8274e090d2fd67c8bd78
This commit is contained in:
William Wilgus 2020-07-20 00:40:03 -04:00
parent c84f9252d7
commit 2b1de3d336
1 changed files with 5 additions and 5 deletions

View File

@ -730,11 +730,11 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected,
if (redraw_lists && !done)
{
if (menu_callback)
if (menu_callback(ACTION_REDRAW, menu, &lists) == ACTION_REDRAW)
{
gui_synclist_draw(&lists);
gui_synclist_speak_item(&lists);
}
if (menu_callback(ACTION_REDRAW, menu, &lists) != ACTION_REDRAW)
continue;
gui_synclist_draw(&lists);
gui_synclist_speak_item(&lists);
}
}