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:
parent
01eebd0b9d
commit
c186d1f319
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue