diff --git a/common/eda_base_frame.cpp b/common/eda_base_frame.cpp index 17ae5ba395..e510cfb323 100644 --- a/common/eda_base_frame.cpp +++ b/common/eda_base_frame.cpp @@ -499,6 +499,22 @@ void EDA_BASE_FRAME::ReCreateMenuBar() } +void EDA_BASE_FRAME::SetMenuBar( wxMenuBar* menu_bar ) +{ + wxFrame::SetMenuBar( menu_bar ); + + // Move Help menu back to end of menubar + + int pos = GetMenuBar()->FindMenu( _( "&Help" ) + wxS( " " ) ); + + if( pos != wxNOT_FOUND ) + { + wxMenu* helpMenu = GetMenuBar()->Remove( pos ); + GetMenuBar()->Append( helpMenu, _( "&Help" ) + wxS( " " ) ); + } +} + + void EDA_BASE_FRAME::AddStandardHelpMenu( wxMenuBar* aMenuBar ) { COMMON_CONTROL* commonControl = m_toolManager->GetTool(); @@ -516,6 +532,7 @@ void EDA_BASE_FRAME::AddStandardHelpMenu( wxMenuBar* aMenuBar ) // Trailing space keeps OSX from hijacking our menu (and disabling everything in it). aMenuBar->Append( helpMenu, _( "&Help" ) + wxS( " " ) ); + helpMenu->wxMenu::SetTitle( _( "&Help" ) + wxS( " " ) ); } diff --git a/include/eda_base_frame.h b/include/eda_base_frame.h index 11fd28cf26..d137568294 100644 --- a/include/eda_base_frame.h +++ b/include/eda_base_frame.h @@ -439,6 +439,8 @@ public: */ void ReCreateMenuBar(); + void SetMenuBar( wxMenuBar *menu_bar ) override; + /** * Adds the standard KiCad help menu to the menubar. */