Suppress wxWidgets popups when locale can't be loaded for some reason

Fixes https://gitlab.com/kicad/code/kicad/-/issues/13371
This commit is contained in:
Jon Evans 2023-01-05 12:39:16 -05:00
parent cbe5340d37
commit 1d9783ed32
1 changed files with 3 additions and 0 deletions

View File

@ -611,6 +611,9 @@ COMMON_SETTINGS* PGM_BASE::GetCommonSettings() const
bool PGM_BASE::SetLanguage( wxString& aErrMsg, bool first_time )
{
// Suppress wxWidgets error popups if locale is not found
wxLogNull doNotLog;
if( first_time )
{
setLanguageId( wxLANGUAGE_DEFAULT );