From 3295be21cea50e68fe41d7641c8a7d128144141a Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Tue, 19 Mar 2013 07:37:04 +0100 Subject: [PATCH] Temporarily fix an issue with unit menus After 5.2 when Blizzard switched to 'togglemenu', there is a bug with the dropdown code that requires raid frames to continue using 'menu' instead in order to work properly. This change should properly use the correct attribute until this bug has been fixed. --- Clique.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Clique.lua b/Clique.lua index 7bf7d63..bfbc7b4 100755 --- a/Clique.lua +++ b/Clique.lua @@ -501,7 +501,8 @@ function addon:GetClickAttributes(global) bits[#bits + 1] = ATTR(indent, prefix, "type", suffix, entry.type) rembits[#rembits + 1] = REMATTR(prefix, "type", suffix) elseif entry.type == "menu" then - bits[#bits + 1] = ATTR(indent, prefix, "type", suffix, "togglemenu") + set_text = ATTR(indent, prefix, "type", suffix, "togglemenu") + bits[#bits + 1] = string.gsub(set_text, '"togglemenu"', 'button:GetAttribute("*type2") == "menu" and "menu" or "togglemenu"') rembits[#rembits + 1] = REMATTR(prefix, "type", suffix) elseif entry.type == "spell" and self.settings.stopcastingfix then -- Implement the 'stop casting'f ix -- 1.7.9.5