Re-add code to refresh plugins at each frame load

Should now be safe

Fixes https://gitlab.com/kicad/code/kicad/-/issues/9781
This commit is contained in:
Jon Evans 2021-12-08 20:48:35 -05:00
parent 587ee890d9
commit 622d0fc896
1 changed files with 3 additions and 0 deletions

View File

@ -316,6 +316,9 @@ PCB_EDIT_FRAME::PCB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
PythonSyncEnvironmentVariables();
PythonSyncProjectName();
// Sync action plugins in case they changed since the last time the frame opened
GetToolManager()->RunAction( PCB_ACTIONS::pluginsReload, true );
GetCanvas()->SwitchBackend( m_canvasType );
ActivateGalCanvas();