Force refresh AUI manager after reloading python scripts.
Because the tools in the Htoolbar can have changed, the AUI manager need refresh.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user