From e01e62457fb945d15304766a7a89f4c61f7db4fe Mon Sep 17 00:00:00 2001 From: HonorGoG Date: Thu, 17 Jan 2019 10:59:52 -0800 Subject: [PATCH] - TitanLocation: Reverted logic to call TitanPanelLocationButton_LocOnMiniMap on PLAYER_ENTERING_WORLD event. --- TitanLocation/TitanLocation.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TitanLocation/TitanLocation.lua b/TitanLocation/TitanLocation.lua index 6fba81e..443b02e 100755 --- a/TitanLocation/TitanLocation.lua +++ b/TitanLocation/TitanLocation.lua @@ -186,7 +186,9 @@ end -- ************************************************************************** function TitanPanelLocationButton_OnEvent(self, event, ...) if event == "PLAYER_ENTERING_WORLD" then - TitanPanelLocationButton_LocOnMiniMap() + if not TitanGetVar(TITAN_LOCATION_ID, "ShowLocOnMiniMap") and MinimapBorderTop and MinimapBorderTop:IsShown() then + TitanPanelLocationButton_LocOnMiniMap() + end end if TitanGetVar(TITAN_LOCATION_ID, "UpdateWorldmap") then local mapID = C_Map.GetBestMapForUnit("player") -- 1.7.9.5