menu.c fix redraw bug
fix redraw bug added with c39f95465
Change-Id: I9ce232d4b760f20edb6f8274e090d2fd67c8bd78
This commit is contained in:
parent
c84f9252d7
commit
2b1de3d336
10
apps/menu.c
10
apps/menu.c
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue