Open mikeylemmon opened 20 hours ago
I haven't used custom menus myself, the growing main menu bug I encountered during running the tests for an unrelated change. Sounds like that whole reset menu logic there needs to be moved to the same location where the custom menu is applied.
Yes, @mikeylemmon is correct that _clear_main_menu
is the culprit. The menu logic needs to be refactored. Maybe window specific menu can be incorporated as part of this refactor as well
Specification
master
branch (5.3.2+ [commit f19a758406])Description
Menus don't currently seem to be working on MacOS — running the menu example results only in a "View" menu (shown below) regardless of what is passed to the menu argument:
This behavior is the same when bundled with py2app.
A tiny bit of digging reveals that the issue can be fixed by commenting out the
self._clear_main_menu()
call that was added to cocoa.py'sfirst_show
method in #1407, but I'm guessing that removing the call also re-introduce the "ever-growing main menu bug". @lanzz were custom menus working when you first implemented your fix for the menu bug?Practicalities
YES I am willing to work on this issue myself.
NO I am not prepared to support this issue financially.