Quantcast

some fix to inst difficulty

Darthpred [11-24-14 - 17:27]
some fix to inst difficulty
Filename
ElvUI_SLE/modules/minimap/instance.lua
diff --git a/ElvUI_SLE/modules/minimap/instance.lua b/ElvUI_SLE/modules/minimap/instance.lua
index ff6e424..79ef1da 100644
--- a/ElvUI_SLE/modules/minimap/instance.lua
+++ b/ElvUI_SLE/modules/minimap/instance.lua
@@ -44,13 +44,13 @@ end
 function I:UpdateFrame()
 	local db = E.db.sle.minimap.instance
 	if IsInInstance() then
-		if db.flag then
-			MiniMapInstanceDifficulty:Show()
-		else
+		if not db.flag then
 			MiniMapInstanceDifficulty:Hide()
+		elseif db.flag and not MiniMapInstanceDifficulty:IsShown() then
+			MiniMapInstanceDifficulty:Show()
 		end
 	end
-	f:Point("TOPLEFT", MiniMapInstanceDifficulty, "TOPLEFT", db.xoffset, db.yoffset)
+	f:Point("TOPLEFT", Minimap, "TOPLEFT", db.xoffset, db.yoffset)
 	if db.enable then
 		f.text:Show()
 	else