From 1281574f45b56e964ab8a6b3d07aea7db2562009 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Sat, 15 Sep 2012 23:48:23 +0000 Subject: [PATCH] Fade out the "Restore default" button if using the default script. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@523 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleOptions.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OvaleOptions.lua b/OvaleOptions.lua index e44d39c..e0eb1be 100644 --- a/OvaleOptions.lua +++ b/OvaleOptions.lua @@ -282,6 +282,9 @@ local options = order = 2, type = "execute", name = L["Restaurer le défaut"], + disabled = function() + return OvaleOptions.db.profile.code == OvaleOptions.db.defaults.profile.code + end, func = function() OvaleOptions.db.profile.code = OvaleOptions.db.defaults.profile.code Ovale.needCompile = true -- 1.7.9.5