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:
jean-pierre charras 2021-12-03 09:30:24 +01:00
parent 01eebd0b9d
commit c186d1f319
1 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,8 @@ int SCRIPTING_TOOL::reloadPlugins( const TOOL_EVENT& aEvent )
frame()->ReCreateMenuBar(); frame()->ReCreateMenuBar();
// Recreate top toolbar to add action plugin buttons // Recreate top toolbar to add action plugin buttons
frame()->ReCreateHToolbar(); frame()->ReCreateHToolbar();
// Post a size event to force resizing toolbar by the AUI manager:
frame()->PostSizeEvent();
} }
return 0; return 0;