]> git.mdlowis.com Git - proto/labwc.git/commitdiff
menu: minor refactoring to increase readability
authorJohan Malm <jgm323@gmail.com>
Thu, 8 Dec 2022 20:41:38 +0000 (20:41 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 1 Jan 2023 18:59:16 +0000 (18:59 +0000)
src/menu/menu.c

index 93f578d41ac2981c9df66aa51792241576f28fec..cd463429ecc30f52044e7cf884dadf3ba2b5140a 100644 (file)
@@ -620,7 +620,6 @@ menu_hide_submenu(const char *id)
 static void
 init_rootmenu(struct server *server)
 {
-       parse_xml("menu.xml", server);
        struct menu *menu = menu_get_by_id("root-menu");
 
        /* Default menu if no menu.xml found */
@@ -685,6 +684,7 @@ init_windowmenu(struct server *server)
 void
 menu_init(struct server *server)
 {
+       parse_xml("menu.xml", server);
        init_rootmenu(server);
        init_windowmenu(server);
        post_processing(server);