Quantcast

Fixed #75

Darthpred [11-24-14 - 17:51]
Fixed #75
Well, unless someone hits escape while afk it will be totally fine
Filename
ElvUI_SLE/modules/screensaver.lua
diff --git a/ElvUI_SLE/modules/screensaver.lua b/ElvUI_SLE/modules/screensaver.lua
index 6e44593..d88b91b 100644
--- a/ElvUI_SLE/modules/screensaver.lua
+++ b/ElvUI_SLE/modules/screensaver.lua
@@ -4,9 +4,6 @@ local S = E:GetModule("SLE_ScreenSaver")
 local LSM = LibStub("LibSharedMedia-3.0")
 local Sk = E:GetModule("Skins")

-if AddOnSkins then
-	local AS = unpack(AddOnSkins)
-end
 local SS
 local ru = false
 local Months = {}
@@ -236,12 +233,6 @@ function S:Shown()
 	self.Top.PlayerInfo:SetText(format("|c%s%s|r, %s %s", Color.colorStr, Class, LEVEL, Level))

 	self.ScrollFrame:AddMessage(L["SLE_TIPS"][TipNum], 1, 1, 1)
-
-	UIParent:Hide()
-	UIParent:Show()
-	if AS then
-		AS:EmbedExitCombat()
-	end
 end

 function S:Update(elapsed)
@@ -279,6 +270,7 @@ function S:Event(event, unit)
 			fading = true
 			UIFrameFadeIn(UIParent, 0.5, 1, 0)
 		end
+		UIParent:Hide()
 	else
 		FlipCameraYaw(-degree)
 		degree = 0