bugfix: ignore hidden menus also when a menuitem is
selected from a menu via key Enter
This commit is contained in:
+3
-8
@@ -78,14 +78,9 @@ static inline MenuItem *menu_getnext_item (Menu *menu)
|
||||
: NULL);
|
||||
}
|
||||
|
||||
/** Retrieves the current item from the list of items in the menu. */
|
||||
static inline MenuItem *menu_get_current_item (Menu *menu)
|
||||
{
|
||||
return (MenuItem*) ((menu != NULL)
|
||||
? LL_GetByIndex(menu->data.menu.contents,
|
||||
menu->data.menu.selector_pos)
|
||||
: NULL);
|
||||
}
|
||||
/** Retrieves the current (non-hidden) item from the list of items in the
|
||||
* menu. */
|
||||
MenuItem *menu_get_current_item (Menu *menu);
|
||||
|
||||
/** Finds an item in the menu by the given id. */
|
||||
MenuItem *menu_find_item (Menu *menu, char *id, bool recursive);
|
||||
|
||||
Reference in New Issue
Block a user