Suppress wx error popups when locale is missing

This commit is contained in:
Jon Evans 2022-12-16 17:07:57 -05:00
parent 5abf73e3c9
commit bc45e3f16e
1 changed files with 3 additions and 0 deletions

View File

@ -709,6 +709,9 @@ bool PGM_BASE::SetLanguage( wxString& aErrMsg, bool first_time )
bool PGM_BASE::SetDefaultLanguage( wxString& aErrMsg )
{
// Suppress error popups from wxLocale
wxLogNull doNotLog;
setLanguageId( wxLANGUAGE_DEFAULT );
// dictionary file name without extend (full name is kicad.mo)