From f2b2d8d78d4bf29faedce2a945a406bb50f9c663 Mon Sep 17 00:00:00 2001 From: Parnic Date: Tue, 2 Dec 2008 06:29:55 +0000 Subject: [PATCH] - made sure that "lower text" and "upper text" configuration options are not present if a given module cannot use dogtags --- IceBarElement.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IceBarElement.lua b/IceBarElement.lua index c22ca53..f5114d1 100644 --- a/IceBarElement.lua +++ b/IceBarElement.lua @@ -365,7 +365,7 @@ function IceBarElement.prototype:GetOptions() name = 'Upper Text', desc = 'The upper text to display under this bar (accepts LibDogTag formatting)\n\nSee http://www.wowace.com/wiki/LibDogTag-2.0/ or type /dogtag for tag info', hidden = function() - return DogTag == nil + return DogTag == nil or not self.moduleSettings.usesDogTagStrings end, get = function() return self.moduleSettings.upperText @@ -387,7 +387,7 @@ function IceBarElement.prototype:GetOptions() name = 'Lower Text', desc = 'The lower text to display under this bar (accepts LibDogTag formatting)\n\nSee http://www.wowace.com/wiki/LibDogTag-2.0/ or type /dogtag for tag info', hidden = function() - return DogTag == nil + return DogTag == nil or not self.moduleSettings.usesDogTagStrings end, get = function() return self.moduleSettings.lowerText