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:
parent
a4db439cf8
commit
fe148df57e
|
@ -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" ) )
|
||||
|
|
|
@ -48,6 +48,8 @@ public:
|
|||
void KiwayMailIn( KIWAY_EXPRESS& aEvent ) override {}
|
||||
void ProjectChanged() override {}
|
||||
|
||||
void ShowChangedLanguage() override {};
|
||||
|
||||
void SetupPythonEditor();
|
||||
private:
|
||||
|
||||
|
|
Loading…
Reference in New Issue