Quantcast

Make Clique PTR/Live compatible

James Whitehead II [02-13-13 - 06:21]
Make Clique PTR/Live compatible
Filename
Clique.lua
diff --git a/Clique.lua b/Clique.lua
index 0c94559..d7ec7cd 100755
--- a/Clique.lua
+++ b/Clique.lua
@@ -271,6 +271,12 @@ function addon:Enable()
     CliqueSpellTab.tooltip = L["Clique binding configuration"]
 end

+local build = select(2, GetBuildInfo())
+local menuType = 'menu'
+if tonumber(build) >= 16562 then
+	menuType = 'togglemenu'
+end
+
 -- A new profile is being created in the db, called 'profile'
 function addon:OnNewProfile(event, db, profile)
     table.insert(db.profile.bindings, {
@@ -281,9 +287,10 @@ function addon:OnNewProfile(event, db, profile)
             default = true
         },
     })
+
     table.insert(db.profile.bindings, {
         key = "BUTTON2",
-        type = "togglemenu",
+        type = menuType,
         sets = {
             default = true
         },