Add a button to the code window to restore the code to the default script.
Johnny C. Lam [08-15-12 - 00:24]
Add a button to the code window to restore the code to the default script.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@490 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleOptions.lua b/OvaleOptions.lua
index 08525d8..e937921 100644
--- a/OvaleOptions.lua
+++ b/OvaleOptions.lua
@@ -276,6 +276,16 @@ local options =
Ovale.needCompile = true
end,
width = "full"
+ },
+ restore =
+ {
+ order = 2,
+ type = "execute",
+ name = L["Restaurer le défaut"],
+ func = function()
+ OvaleOptions.db.profile.code = OvaleOptions.db.defaults.profile.code
+ Ovale.needCompile = true
+ end,
}
}
},