From c186d1f319c0b11c2741e7c1a833bd57f477f638 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 3 Dec 2021 09:30:24 +0100 Subject: [PATCH] Force refresh AUI manager after reloading python scripts. Because the tools in the Htoolbar can have changed, the AUI manager need refresh. --- pcbnew/python/scripting/pcb_scripting_tool.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/python/scripting/pcb_scripting_tool.cpp b/pcbnew/python/scripting/pcb_scripting_tool.cpp index 1223ef5e79..5b47c5d371 100644 --- a/pcbnew/python/scripting/pcb_scripting_tool.cpp +++ b/pcbnew/python/scripting/pcb_scripting_tool.cpp @@ -93,6 +93,8 @@ int SCRIPTING_TOOL::reloadPlugins( const TOOL_EVENT& aEvent ) frame()->ReCreateMenuBar(); // Recreate top toolbar to add action plugin buttons frame()->ReCreateHToolbar(); + // Post a size event to force resizing toolbar by the AUI manager: + frame()->PostSizeEvent(); } return 0;