Quantcast

Update BindConfig when changing profiles

James Whitehead II [10-10-10 - 19:24]
Update BindConfig when changing profiles
Filename
BindConfig.lua
Clique.lua
diff --git a/BindConfig.lua b/BindConfig.lua
index 6fb27b1..ec8b51d 100755
--- a/BindConfig.lua
+++ b/BindConfig.lua
@@ -274,7 +274,7 @@ function CliqueConfig:UpdateList()
     local binds = addon.bindings

     -- GUI not created yet
-    if not page then
+    if not self.initialized then
         return
     end

diff --git a/Clique.lua b/Clique.lua
index 8727545..4c3a5e4 100755
--- a/Clique.lua
+++ b/Clique.lua
@@ -472,6 +472,8 @@ function addon:ChangeProfile(profileName)
     addon:UpdateAttributes()
     addon:UpdateGlobalAttributes()
     addon:UpdateOptionsPanel()
+
+    CliqueConfig:UpdateList()
 end

 SLASH_CLIQUE1 = "/clique"