menu: use wl_list instead of array

...to make it easier to split menu.c into smaller chunks without
exposing nr_menus variable.
This commit is contained in:
Johan Malm 2023-10-09 20:59:04 +01:00 committed by Johan Malm
parent b22722dafa
commit a105c8781a
5 changed files with 29 additions and 38 deletions

View file

@ -493,7 +493,7 @@ show_menu(struct server *server, struct view *view, const char *menu_name)
}
bool force_menu_top_left = false;
struct menu *menu = menu_get_by_id(menu_name);
struct menu *menu = menu_get_by_id(server, menu_name);
if (!menu) {
return;
}