Skip to content

Commit

Permalink
Only disable other addon when we need to
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Aug 30, 2024
1 parent 45d9d3d commit f000d0b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions providers/taxi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,13 @@ addon:RegisterOptionCallback('taxi', function(value)

if enabled then
WorldMapFrame:AddDataProvider(taxiProvider)

-- WorldFlightMap does pretty much the same thing, but is outdated and broken, and the author is not
-- responding to my pull requests to fix it, so we disable it to prevent collisions
if C_AddOns.DoesAddOnExist('WorldFlightMap') and C_AddOns.IsAddOnLoadable('WorldFlightMap') then
C_AddOns.DisableAddOn('WorldFlightMap')
end
else
WorldMapFrame:RemoveDataProvider(taxiProvider)
end
end)

-- WorldFlightMap does pretty much the same thing, but is outdated and broken, and the author is not
-- responding to my pull requests to fix it, so we disable it to prevent collisions
if C_AddOns.DoesAddOnExist('WorldFlightMap') and C_AddOns.IsAddOnLoadable('WorldFlightMap') then
C_AddOns.DisableAddOn('WorldFlightMap')
end

0 comments on commit f000d0b

Please sign in to comment.