From c5b0eadef0e9ee68fe34e185e267fd4c85087879 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Fri, 5 Aug 2016 16:15:45 +0300 Subject: [PATCH] Fixing TSM Crafting's errors --- ElvUI_SLE/core/core.lua | 1 + ElvUI_SLE/modules/professions/professions.lua | 2 ++ 2 files changed, 3 insertions(+) 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 -- 1.7.9.5