Double Help menu on Mac

In my application, I set up a main menu that contains a Help menu. Most of the time it works fine. But if a modal dialog comes up during initialization, my main menu ends up with two Help menus.

While the initialization dialog is up, the main menu shows three items: the system menu (apple symbol), the application menu (my app’s name), and Help. None of these are created by me. I even moved my UI init (where I call setMacMainMenu) ahead of this dialog, but that had no effect.

Can anyone point me in the right direction for what is causing this or how to prevent it? I can’t move the dialog to happen later. :frowning:


Sounds like you’re triggering some kind of recursive mix-up…

Two pieces of advice:

  1. Never run modal loops - launch your modal dialogs asynchronously
  2. Avoid pop ups during initialisation - best to let things start up and then interact with the user after a brief pause once your app’s window is up and running.