From bc45e3f16e76c9407c0181a13cb714a12805b98c Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Fri, 16 Dec 2022 17:07:57 -0500 Subject: [PATCH] Suppress wx error popups when locale is missing --- common/pgm_base.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/pgm_base.cpp b/common/pgm_base.cpp index 49f9f433d3..c2a0dc95c6 100644 --- a/common/pgm_base.cpp +++ b/common/pgm_base.cpp @@ -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)