From b2b8d6b087c585ac367f701b92ab6bf8186bed1d Mon Sep 17 00:00:00 2001 From: urnati Date: Fri, 30 Apr 2021 10:32:48 -0400 Subject: [PATCH] -- Fix for colorSwatch error --- .../LibUIDropDownMenu/LibUIDropDownMenu.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/TitanClassic/libs/!LibUIDropDownMenu/LibUIDropDownMenu/LibUIDropDownMenu.lua b/TitanClassic/libs/!LibUIDropDownMenu/LibUIDropDownMenu/LibUIDropDownMenu.lua index 68d1f6e..ae0d373 100755 --- a/TitanClassic/libs/!LibUIDropDownMenu/LibUIDropDownMenu/LibUIDropDownMenu.lua +++ b/TitanClassic/libs/!LibUIDropDownMenu/LibUIDropDownMenu/LibUIDropDownMenu.lua @@ -975,7 +975,13 @@ function L_UIDropDownMenu_AddButton(info, level) button.b = info.b; colorSwatch:Show(); else - colorSwatch:Hide(); + --[[ Titan: + Not sure why we need to check this... but not checking causes an error in the re-released BC + --]] + if colorSwatch then + colorSwatch:Hide(); + else + end end L_UIDropDownMenu_CheckAddCustomFrame(listFrame, button, info); -- 1.7.9.5