Quantcast

Make mail icon show backdrop only if it's on bar

Darthpred [08-20-16 - 15:20]
Make mail icon show backdrop only if it's on bar
Filename
ElvUI_SLE/modules/minimap/minimapicons.lua
diff --git a/ElvUI_SLE/modules/minimap/minimapicons.lua b/ElvUI_SLE/modules/minimap/minimapicons.lua
index ed3ef31..9c1df60 100644
--- a/ElvUI_SLE/modules/minimap/minimapicons.lua
+++ b/ElvUI_SLE/modules/minimap/minimapicons.lua
@@ -208,7 +208,7 @@ local function SkinButton(Button)
 		elseif Name == 'MiniMapMailFrame' then
 			local Frame = CreateFrame('Frame', 'MailDummyFrame', E.private.sle.minimap.mapicons.barenable and SMB.bar or Minimap)
 			Frame:Size(E.db.sle.minimap.mapicons.iconsize)
-			Frame:SetTemplate()
+			Frame:SetTemplate(E.private.sle.minimap.mapicons.barenable and "Default" or "NoBackdrop")
 			Frame.Icon = Frame:CreateTexture(nil, 'ARTWORK')
 			Frame.Icon:SetPoint('CENTER')
 			Frame.Icon:Size(18)