Browse Source

Force refresh AUI manager after reloading python scripts.

Because the tools in the Htoolbar can have changed, the AUI manager need refresh.
6.0.7
jean-pierre charras 4 years ago
parent
commit
c186d1f319
  1. 2
      pcbnew/python/scripting/pcb_scripting_tool.cpp

2
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;

Loading…
Cancel
Save