Corrected menu drawing in MB-Lab toolbox. Issue #173.
All menus have named variable corresponding to the content.
It will solve problem with disabling wrong menu and drawing top level buttons inside subsection panel.
I described variables as best I could. My intention was not to invent extremely long names, but to introduce some in order to identify what is the menu and what should be expected content. Using the same variable name is not reducing memory usage, it is making code more complex and hard to understand. It is much easier to introduce bugs, since developer need to remember what is last assignment. I hope this fix will improve maintainability of the add-on.
Corrected menu drawing in MB-Lab toolbox. Issue #173. All menus have named variable corresponding to the content. It will solve problem with disabling wrong menu and drawing top level buttons inside subsection panel.
I described variables as best I could. My intention was not to invent extremely long names, but to introduce some in order to identify what is the menu and what should be expected content. Using the same variable name is not reducing memory usage, it is making code more complex and hard to understand. It is much easier to introduce bugs, since developer need to remember what is last assignment. I hope this fix will improve maintainability of the add-on.