Modify ↓
#123 closed defect (wontfix)
Plugin actions cannot be registered and put in the toolbar
Reported by: | Owned by: | imi | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
The toolbar is initialized on the constructor of the "Main" object, before loading the plugins. So, any actions provided by these plugins are not added to the toolbar until a new refresh (when accepting the preferences window) and an empty box appears instead of the action icon.
A workaround may be calling Main.toolbar.refreshToolbarControl(); in the plugin constructor, but this should be done in the main application.
Attachments (0)
Note:
See TracTickets
for help on using tickets.
The "workaround" was the intention of refreshToolbarControl(). I added a comment to make it clear ;-).