Quantcast

Fix opening the standalone Ovale config and code windows.

Johnny C. Lam [08-15-12 - 00:24]
Fix opening the standalone Ovale config and code windows.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@491 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
Ovale.lua
OvaleOptions.lua
diff --git a/Ovale.lua b/Ovale.lua
index 5549ffc..05f440d 100644
--- a/Ovale.lua
+++ b/Ovale.lua
@@ -204,16 +204,6 @@ function Ovale:Log(text)
 	end
 end

-function Ovale:AfficherConfig()
-	self.AceConfigDialog:SetDefaultSize("Ovale Apparence", 500, 550)
-	self.AceConfigDialog:Open("Ovale Apparence", configFrame)
-end
-
-function Ovale:AfficherCode()
-	self.AceConfigDialog:SetDefaultSize("Ovale", 500, 550)
-	self.AceConfigDialog:Open("Ovale", configFrame)
-end
-
 local function OnCheckBoxValueChanged(widget)
 	OvaleOptions:GetProfile().check[widget.userdata.k] = widget:GetValue()
 	if Ovale.casesACocher[widget.userdata.k].compile then
diff --git a/OvaleOptions.lua b/OvaleOptions.lua
index e937921..4894a7c 100644
--- a/OvaleOptions.lua
+++ b/OvaleOptions.lua
@@ -321,13 +321,13 @@ local options =
 				{
 					name = "Configuration",
 					type = "execute",
-					func = function() Ovale:AfficherConfig() end
+					func = function() AceConfigDialog:SetDefaultSize("Ovale Apparence", 500, 550); AceConfigDialog:Open("Ovale Apparence") end
 				},
 				code  =
 				{
 					name = "Code",
 					type = "execute",
-					func = function() Ovale:AfficherCode() end
+					func = function() AceConfigDialog:SetDefaultSize("Ovale", 500, 550); AceConfigDialog:Open("Ovale") end
 				},
 				debug =
 				{