Experiencing some wierdness with the WorldFrame with CFM.
1) Added "WorldFrame"
2) Adjust size to 500x500 and center in screen.
3) /reload
4) WorldFrame returns to original size
5) /reload
6) WorldFrame applies it's settings
7) /reload
8) repeats 4-6
Relevant code:
Code:
function CFM_OnUpdate(self, elapsed)
if self.delay then
self.delay = self.delay - elapsed
if self.delay < 0 then
self.delay = nil
CFM_Loaded = true
for k,_ in pairs(activeProfile) do
if _G[k] == nil or not _G[k]:IsVisible() then return else CFM_ApplySettings(k) end
print("Debug: "..k)
end
self:SetScript("OnUpdate", nil)
self:Hide()
end
else
if CFM_Delay and not CFM_Loaded then
self.delay = 2
end
end
end
Put in the debug print and found it will list all the other saved frames on
every /reload, but for some reason the WorldFrame would only every
other time.
I'm assuming there's something up with the WorldFrame itself that I don't know about that causes this behavior. Just doesn't make any sense why it would only be found on every time while the rest are found every time.