From 544c09488d4e18e4e1515021cfb0565f4135c67e Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Wed, 15 Aug 2012 00:24:05 +0000 Subject: [PATCH] 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 --- OvaleOptions.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) 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, } } }, -- 1.7.9.5