From 2fe9066a71ac83b26b227092c79a1a094e5cc9c0 Mon Sep 17 00:00:00 2001 From: Ludovicus Date: Sun, 18 Oct 2020 18:38:22 -0400 Subject: [PATCH] Call EnableDisablePOIIntegration() and ReloadWaypoints after PLAYER_LOGIN. --- TomTom.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/TomTom.lua b/TomTom.lua index 4be40cc..45f6b26 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -166,7 +166,6 @@ function TomTom:Initialize(event, addon) end self:ReloadOptions() - self:ReloadWaypoints() if self.db.profile.feeds.coords then -- Create a data feed for coordinates @@ -199,6 +198,13 @@ function TomTom:Initialize(event, addon) end end +function TomTom:Enable(addon) + if not TomTom.CLASSIC then + self:EnableDisablePOIIntegration() + end + self:ReloadWaypoints() +end + -- Some utility functions that can pack/unpack data from a waypoint -- Returns a hashable 'key' for a given waypoint consisting of the @@ -241,9 +247,6 @@ function TomTom:ReloadOptions() self:ShowHideWorldCoords() self:ShowHideCoordBlock() self:ShowHideCrazyArrow() - if not TomTom.CLASSIC then - self:EnableDisablePOIIntegration() - end end function TomTom:ClearAllWaypoints() -- 1.7.9.5