Move macos menu init to the gui related code and reparent it with a main window.

Closes #1258 (closed)

(cherry picked from commit eb4b8fbd)

Merge request reports

Loading