MBB

15 - Check default options and positioning buttons only once when logging in

The addon is checking the same default options (MBB_Options) and positioning the same buttons (MBB_SetButtonPosition) a lot when logging in. The addon is currently using the ADDON_LOADED event which runs for every addon that is loaded into memory at startup. Maybe check the name of the addon with the ARG1. Or, maybe go back to using the VARIABLES_LOADED event like in version 0.63 which ran only once and ran after all other addons loaded their buttons. For example,

MBBFrame:RegisterEvent("VARIABLES_LOADED");
--MBBFrame:RegisterEvent("ADDON_LOADED");


Or,

function MBB_OnEvent(self, event, arg1) 
if ( event == "ADDON_LOADED" and strlower(arg1) == "mbb" ) then
User When Change
jtbalogh Jan 08, 2012 at 16:47 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

Facts

Reported
Jan 08, 2012
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees