Catch language switch before Python

We don't translate the python scripting window yet, so we need to catch
the KIWAY message to change the language and simply discard it

Fixes https://gitlab.com/kicad/code/kicad/issues/10021
This commit is contained in:
Seth Hillbrand 2021-12-16 16:04:42 -08:00 committed by Wayne Stambaugh
parent a4db439cf8
commit fe148df57e
2 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,7 @@ output.SetParent( parent )
)", pybind11::globals(), locals );
}
KIPYTHON_FRAME::KIPYTHON_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
KIWAY_PLAYER( aKiway, aParent, FRAME_PYTHON, wxT( "KiPython" ), wxDefaultPosition,
wxDefaultSize, KICAD_DEFAULT_DRAWFRAME_STYLE, wxT( "KiPython" ) )

View File

@ -48,6 +48,8 @@ public:
void KiwayMailIn( KIWAY_EXPRESS& aEvent ) override {}
void ProjectChanged() override {}
void ShowChangedLanguage() override {};
void SetupPythonEditor();
private: