Quantcast

Replace the 'Change binding' menu with 'Edit macro' for macros

James Whitehead II [10-14-10 - 15:21]
Replace the 'Change binding' menu with 'Edit macro' for macros
Filename
BindConfig.lua
diff --git a/BindConfig.lua b/BindConfig.lua
index 62f4ab2..274580f 100755
--- a/BindConfig.lua
+++ b/BindConfig.lua
@@ -482,8 +482,8 @@ function CliqueConfig:Row_OnClick(frame, button)
     }

     if binding.type == "macro" then
-        -- Add an edit binding menu
-        table.insert(menu, 3, {
+        -- Replace 'Change Binding' with 'Edit macro'
+        menu[2] = {
             text = L["Edit macro"],
             func = function()
                 self.page2.bindType = "macro"
@@ -496,7 +496,7 @@ function CliqueConfig:Row_OnClick(frame, button)
                 self.page2:Show()
             end,
             notCheckable = true,
-        })
+        }
     end

     local submenu = {