1 - addon tries to registered twice
What steps will reproduce the problem?
1. Log in.
2.
3.
What is the expected output? What do you see instead?
Titan gives an error stating that Speed tried to load a second time. You can also go to the interface->options->Titan Panel pane and see the error under attempts.
What version of the product are you using?
4.1.001
Please provide any additional information below.
The reason this error occurs is that TitanSpeed.lua is calling TitanPanelButton_OnLoad(self) directly on line 53. Since "TitanPanelComboTemplate" already sets this to be called as its OnLoad script, the function is getting called twice and the addon is getting queued to be registered twice.
The error may arise from seeing that other titan plugins specify the function in the OnLoad section of their xml files, but specifying it there does not cause it to be called a second time.
The solution is to simply remove / comment out line 53. The plugin will be correctly registered once.
| User | When | Change |
|---|---|---|
| MSaint | Jun 20, 2011 at 22:45 UTC | Changed description:The reason this error occurs is that TitanSpeed.lua is calling TitanPanelButton_OnLoad(self) directly on line 53. Since "TitanPanelComboTemplate" already sets this to be called as its OnLoad script, the function is getting called twice and the addon is getting queued to be registered twice. The error may arise from seeing that other titan plugins specify the function in the OnLoad section of their xml files, but specifying it there does not cause it to be called a second time. + + The solution is to simply remove / comment out line 53. The plugin will be correctly registered once. |
| MSaint | Jun 20, 2011 at 22:41 UTC | Create |
Facts
- Last updated
- Jun 20, 2011
- Reported
- Jun 20, 2011
- Status
- New - Issue has not had initial review yet.
- Type
- Defect - A shortcoming, fault, or imperfection
- Priority
- Medium - Normal priority.
- Votes
- 0