2.99 API for adding Image submenus duplicates submenus instead of merging them.
Environment/Versions
- GIMP version:2.99.16
- Package: Beta installer of Development version commit d3c5536a from GIMP.org Note that I cannot build GIMP on Windows myself, because the builds never correctly launch.
Description of the bug
When Python plugins attempt to use the 2.99 API to add items to submenus of <Image>
, the submenus are duplicated instead of merged.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Create a procedure objects proc_alpha, and proc_beta
- Invoke proc_alpha.add_menu_path("/ShouldBeOnlyOne/alpha")
- Invoke proc_beta.add_menu_path("/ShouldBeOnlyOne/beta")
- Note that there are two appearances of the submenu "ShouldBeOnlyOne" each with both "alpha" and "beta" items. …
Expected result: One submenu "ShouldBeOnlyOne", with items "alpha" and "beta"
Actual result: Two appearances of the submenu "ShouldBeOnlyOne" each with both "alpha" and "beta" items.
Additional information
See attached python plug-in example and screenshot
Edited by Jacob Boerema