diff Core.lua @ 7:1a815139e4c3 v0.1.1-BETA

Fixed pullout hiding to avoid fatal errors. Updated TOC to include dependencies. Updated summary to stop timer when closing the window and to make AH mods optional.
author Zerotorescue
date Fri, 08 Oct 2010 17:10:34 +0200
parents 9fff13c08f99
children 3bac0bdd59e2
line wrap: on
line diff
--- a/Core.lua	Fri Oct 08 16:38:47 2010 +0200
+++ b/Core.lua	Fri Oct 08 17:10:34 2010 +0200
@@ -514,7 +514,7 @@
 							
 							-- We MUST close this pullout or we can get errors or even game client crashes once we click another group or close the config dialog!
 							local count = AceGUI:GetNextWidgetNum("Dropdown-Pullout");
-							for i = 0, count do
+							for i = 1, count do
 								if _G['AceGUI30Pullout' .. i] then
 									_G['AceGUI30Pullout' .. i]:Hide();
 								end
@@ -1001,7 +1001,7 @@
 								
 								-- We MUST close this pullout or we can get errors or even game client crashes once we click another group or close the config dialog!
 								local count = AceGUI:GetNextWidgetNum("Dropdown-Pullout");
-								for i = 0, count do
+								for i = 1, count do
 									if _G['AceGUI30Pullout' .. i] then
 										_G['AceGUI30Pullout' .. i]:Hide();
 									end
@@ -1466,6 +1466,8 @@
 								end
 							
 								self.db.global.groups[name] = temp;
+								
+								self:FillGroupOptions();
 							end
 						end,
 						get = false,
@@ -1527,6 +1529,8 @@
 	
 		return lowBuy;
 	end
+	
+	return -2;
 end