- TitanLocation: Reverted logic to call TitanPanelLocationButton_LocOnMiniMap on PLAYER_ENTERING_WORLD event.
HonorGoG [01-17-19 - 18:59]
- TitanLocation: Reverted logic to call TitanPanelLocationButton_LocOnMiniMap on PLAYER_ENTERING_WORLD event.
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")