From 622d0fc8969079b3fc49812f4aacb2954163448c Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Wed, 8 Dec 2021 20:48:35 -0500 Subject: [PATCH] Re-add code to refresh plugins at each frame load Should now be safe Fixes https://gitlab.com/kicad/code/kicad/-/issues/9781 --- pcbnew/pcb_edit_frame.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/pcb_edit_frame.cpp b/pcbnew/pcb_edit_frame.cpp index dd64ff3b7a..e645fd5794 100644 --- a/pcbnew/pcb_edit_frame.cpp +++ b/pcbnew/pcb_edit_frame.cpp @@ -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();