Quantcast

Fixing TSM Crafting's errors

Darthpred [08-05-16 - 13:15]
Fixing TSM Crafting's errors
Filename
ElvUI_SLE/core/core.lua
ElvUI_SLE/modules/professions/professions.lua
diff --git a/ElvUI_SLE/core/core.lua b/ElvUI_SLE/core/core.lua
index e7761c8..35861b6 100644
--- a/ElvUI_SLE/core/core.lua
+++ b/ElvUI_SLE/core/core.lua
@@ -104,6 +104,7 @@ local _CompList = {
 	"DejaCharacterStats",
 	"ElvUI_ExtraActionBars",
 	"ElvUI_KitUI",
+	"TradeSkillMaster",
 }
 for i = 1, #_CompList do
 	if GetAddOnEnableState(E.myname, _CompList[i]) == 0 then SLE._Compatibility[_CompList[i]] = nil else SLE._Compatibility[_CompList[i]] = true end
diff --git a/ElvUI_SLE/modules/professions/professions.lua b/ElvUI_SLE/modules/professions/professions.lua
index fdc120b..43785ae 100644
--- a/ElvUI_SLE/modules/professions/professions.lua
+++ b/ElvUI_SLE/modules/professions/professions.lua
@@ -50,6 +50,8 @@ function Pr:Initialize()
 	if not SLE.initialized then return end

 	LoadAddOn("Blizzard_TradeSkillUI")
+	--Next line is to fix other guys' code cause they fell like being assholes and morons
+	if SLE._Compatibility["TradeSkillMaster"] then TradeSkillFrame.RecipeList.collapsedCategories = {} end
 	Pr:UpdateSkills()
 	_G["TradeSkillFrame"]:HookScript("OnShow", function(self)
 		if Pr.FirstOpen then return end