Fix incorrect Help menu on Windows

Fixes #16598
https://gitlab.com/kicad/code/kicad/-/issues/16598
This commit is contained in:
jean-pierre charras
2024-01-15 08:37:12 +01:00
parent 4fac43d696
commit ec3bf79c42
+5 -1
View File
@@ -4,7 +4,7 @@
* Copyright (C) 2017 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2013 Wayne Stambaugh <[email protected]>
* Copyright (C) 2023 CERN (www.cern.ch)
* Copyright (C) 1992-2023 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 1992-2024 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -521,7 +521,11 @@ 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( " " ) );
// This change is only needed on macOS, and creates a bug on Windows
#ifdef __WXMAC__
helpMenu->wxMenu::SetTitle( _( "&Help" ) + wxS( " " ) );
#endif
}