Quantcast

-- Fix for colorSwatch error

urnati [04-30-21 - 14:32]
-- Fix for colorSwatch error
Filename
TitanClassic/libs/!LibUIDropDownMenu/LibUIDropDownMenu/LibUIDropDownMenu.lua
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);