Quantcast

Hide the bindAlert if the spellbook frame isn't open

James Whitehead II [10-15-10 - 20:27]
Hide the bindAlert if the spellbook frame isn't open
Filename
BindConfig.lua
diff --git a/BindConfig.lua b/BindConfig.lua
index 4c0fec4..b96f7dd 100755
--- a/BindConfig.lua
+++ b/BindConfig.lua
@@ -26,6 +26,13 @@ function CliqueConfig:OnShow()
         self.initialized = true
     end

+    -- Hide the alertTab if the spellbook isn't shown
+    if SpellButton1:IsVisible() then
+        self.bindAlert:Show()
+    else
+        self.bindAlert:Hide()
+    end
+
     CliqueSpellTab:SetChecked(true)
     self:UpdateList()
     self:EnableSpellbookButtons()