Quantcast

Changed the skill update on window open to occur inside a timer, so that the UI and client don't lock up.

pschifferer [05-10-09 - 02:36]
Changed the skill update on window open to occur inside a timer, so that the UI and client don't lock up.
Filename
CauldronMain.lua
diff --git a/CauldronMain.lua b/CauldronMain.lua
index eaf5c20..ad62129 100644
--- a/CauldronMain.lua
+++ b/CauldronMain.lua
@@ -264,37 +264,26 @@ function Cauldron:OnEvent(event, ...)
 end

 function Cauldron:OnTradeShow()
---@alpha@
 	self:debug("OnTradeShow enter");
---@end-alpha@

 	-- update our known skills
---@alpha@
 	self:debug("OnTradeShow: update known skills");
---@end-alpha@
-	self:UpdateSkills();
+	self:ScheduleTimer(self.UpdateSkills,1,self);
+-- self:UpdateSkills();

 	-- show the UI frame
---@alpha@
 	self:debug("OnTradeShow: show the UI");
---@end-alpha@
 	self:Frame_Show();

---@alpha@
 	self:debug("OnTradeShow exit");
---@end-alpha@
 end

 function Cauldron:OnTradeUpdate()
---@alpha@
 	self:debug("OnTradeUpdate enter");
---@end-alpha@

 --	TODO

---@alpha@
 	self:debug("OnTradeUpdate exit");
---@end-alpha@
 end

 function Cauldron:OnTradeClose()