Quantcast

clears and stuff

Darthpred [08-06-16 - 10:35]
clears and stuff
Filename
ElvUI_SLE/modules/enhancedshdows.lua
ElvUI_SLE/modules/professions/professions.lua
diff --git a/ElvUI_SLE/modules/enhancedshdows.lua b/ElvUI_SLE/modules/enhancedshdows.lua
index f934533..a101c34 100644
--- a/ElvUI_SLE/modules/enhancedshdows.lua
+++ b/ElvUI_SLE/modules/enhancedshdows.lua
@@ -113,14 +113,11 @@ function ES:UpdateShadow(shadow)
 	if E.db.sle.shadows.classcolor then r, g, b = ClassColor['r'], ClassColor['g'], ClassColor['b'] end

 	local size = E.db.sle.shadows.size
-	-- if size ~= LastSize then
-		shadow:SetOutside(shadow:GetParent(), size, size)
-		shadow:SetBackdrop({
-			edgeFile = Border, edgeSize = E:Scale(size > 3 and size or 3),
-			insets = {left = E:Scale(5), right = E:Scale(5), top = E:Scale(5), bottom = E:Scale(5)},
-		})
-		-- LastSize = size
-	-- end
+	shadow:SetOutside(shadow:GetParent(), size, size)
+	shadow:SetBackdrop({
+		edgeFile = Border, edgeSize = E:Scale(size > 3 and size or 3),
+		insets = {left = E:Scale(5), right = E:Scale(5), top = E:Scale(5), bottom = E:Scale(5)},
+	})
 	shadow:SetBackdropColor(r, g, b, 0)
 	shadow:SetBackdropBorderColor(r, g, b, 0.9)
 end
diff --git a/ElvUI_SLE/modules/professions/professions.lua b/ElvUI_SLE/modules/professions/professions.lua
index 43785ae..0f70dcd 100644
--- a/ElvUI_SLE/modules/professions/professions.lua
+++ b/ElvUI_SLE/modules/professions/professions.lua
@@ -49,9 +49,9 @@ end
 function Pr:Initialize()
 	if not SLE.initialized then return end

-	LoadAddOn("Blizzard_TradeSkillUI")
+	if not T.IsAddOnLoaded("Blizzard_TradeSkillUI") then LoadAddOn("Blizzard_TradeSkillUI") end
 	--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
+	if SLE._Compatibility["TradeSkillMaster"] and not TradeSkillFrame.RecipeList.collapsedCategories then TradeSkillFrame.RecipeList.collapsedCategories = {} end
 	Pr:UpdateSkills()
 	_G["TradeSkillFrame"]:HookScript("OnShow", function(self)
 		if Pr.FirstOpen then return end