public
Description: WoW Addon - Prospecting and Disenchanting Aide
Homepage: http://www.tekkub.net
Clone URL: git://github.com/tekkub/panda.git
Click here to lend your support to: panda and make a donation at www.pledgie.com !
Fix GemCutting panel not registering events on first show
tekkub (author)
Sun Feb 17 19:48:44 -0800 2008
commit  3190c0b0581cbaebcd440ff00a0632c0771ef2ff
tree    6e5ec82a4fc75cb8509c51be0f9b487889246b19
parent  c4a19191db6ba5f7fdbb3204f94def8fe2ae412d
...
207
208
209
 
210
211
212
...
207
208
209
210
211
212
213
0
@@ -207,6 +207,7 @@ function Panda:CreateDisenchantingPanel()
0
 
0
   self:RegisterEvent("BAG_UPDATE", "DisenchantBagUpdate")
0
   self:DisenchantBagUpdate()
0
+ OpenBackpack()
0
 
0
   frame:SetScript("OnShow", function()
0
     self:RegisterEvent("BAG_UPDATE", "DisenchantBagUpdate")
...
114
115
116
 
117
118
119
...
121
122
123
124
125
126
 
 
 
127
128
129
...
114
115
116
117
118
119
120
...
122
123
124
 
 
 
125
126
127
128
129
130
0
@@ -114,6 +114,7 @@ function Panda:CreateCutGreenBluePanel()
0
     b:SetAttribute("macrotext", "/run CloseTradeSkill()\n/cast Jewelcrafting\n/run CloseTradeSkill()")
0
   end
0
 
0
+ frame:Hide()
0
   frame:SetScript("OnShow", function()
0
     OpenBackpack()
0
     self:RegisterEvent("BAG_UPDATE", "GemCutBagUpdate")
0
@@ -121,9 +122,9 @@ function Panda:CreateCutGreenBluePanel()
0
   end)
0
   frame:SetScript("OnHide", function() self:UnregisterEvent("BAG_UPDATE") end)
0
 
0
- OpenBackpack()
0
- self:RegisterEvent("BAG_UPDATE", "GemCutBagUpdate")
0
- self:GemCutBagUpdate()
0
+--~ OpenBackpack()
0
+--~ self:RegisterEvent("BAG_UPDATE", "GemCutBagUpdate")
0
+--~ self:GemCutBagUpdate()
0
 
0
   self.CreateCutGreenBluePanel = nil -- Don't need this function anymore!
0
   return frame

Comments

    No one has commented yet.