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:
parent
cbe5340d37
commit
1d9783ed32
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue