Sync action plugins every time PCB frame is created

Fixes https://gitlab.com/kicad/code/kicad/-/issues/9781
This commit is contained in:
Jon Evans 2021-11-26 09:58:48 -05:00
parent 6805dff49f
commit 69566b25b1
1 changed files with 3 additions and 0 deletions

View File

@ -314,6 +314,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();