From 097ce374989494410e41e676e5bdf3450ca55b2c Mon Sep 17 00:00:00 2001 From: Darthpred Date: Mon, 24 Nov 2014 21:27:37 +0400 Subject: [PATCH] some fix to inst difficulty --- ElvUI_SLE/modules/minimap/instance.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 1.7.9.5