From 96aabd168ec0bfe71cfcf739288357320fe03fc5 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Wed, 13 Oct 2010 19:39:23 +0100 Subject: [PATCH] Hide the Clique spell tab when appropriate --- BindConfig.lua | 6 +----- Clique.xml | 5 +---- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/BindConfig.lua b/BindConfig.lua index fd79c1a..cde555f 100755 --- a/BindConfig.lua +++ b/BindConfig.lua @@ -118,16 +118,12 @@ function CliqueConfig:HijackSpellbook() self:EnableSpellbookButtons() end) - -- TODO: This isn't a great way to do this, but for now - hooksecurefunc("SpellBookSkillLineTab_OnClick", function() - self:EnableSpellbookButtons() - end) self:EnableSpellbookButtons() end function CliqueConfig:EnableSpellbookButtons() local enabled; - + if self.page1:IsVisible() and SpellBookFrame:IsVisible() then enabled = true end diff --git a/Clique.xml b/Clique.xml index 895a039..4a7c38e 100755 --- a/Clique.xml +++ b/Clique.xml @@ -122,7 +122,7 @@ -