From b7493206a2f391f030643f6a533a852c5e133aa4 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Wed, 26 Jul 2023 19:22:43 +0200 Subject: [PATCH] add private method addItemMenu --- lib/WPMenu.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/WPMenu.py b/lib/WPMenu.py index c3f92c9..d1f349a 100644 --- a/lib/WPMenu.py +++ b/lib/WPMenu.py @@ -366,4 +366,8 @@ class WPMenu: def addItemMenu(self, menu, idMenu): self._logger.info("{0} : add item to menu : {1}".format(self._name, idMenu)) - \ No newline at end of file + for i in menu: + parent = self._createItemMenu(idMenu, i, parent) + for j in menu["children"]: + self._createItemMenu(idMenu, i, parent) + \ No newline at end of file