Quantcast

Do not set text if skin is disabled. This fixes #377

Darth Predator [10-30-16 - 07:01]
Do not set text if skin is disabled. This fixes #377
Filename
ElvUI_SLE/modules/quests/quests.lua
diff --git a/ElvUI_SLE/modules/quests/quests.lua b/ElvUI_SLE/modules/quests/quests.lua
index b57f7e5..7c55a98 100644
--- a/ElvUI_SLE/modules/quests/quests.lua
+++ b/ElvUI_SLE/modules/quests/quests.lua
@@ -11,12 +11,12 @@ local minimizeButton = _G["ObjectiveTrackerFrame"].HeaderMenu.MinimizeButton
 local statedriver = {
 	["FULL"] = function(frame)
 		ObjectiveTracker_Expand()
-		minimizeButton.text:SetText("-")
+		if E.private.skins.blizzard.enable == true and E.private.skins.blizzard.objectiveTracker == true then minimizeButton.text:SetText("-") end
 		frame:Show()
 	end,
 	["COLLAPSED"] = function(frame)
 		ObjectiveTracker_Collapse()
-		minimizeButton.text:SetText("+")
+		if E.private.skins.blizzard.enable == true and E.private.skins.blizzard.objectiveTracker == true then minimizeButton.text:SetText("+") end
 		frame:Show()
 	end,
 	["HIDE"] = function(frame)