Skip to content

Commit

Permalink
fix: Fix typo in objective tracker hook
Browse files Browse the repository at this point in the history
  • Loading branch information
happenslol committed Dec 14, 2024
1 parent 4b0fd1b commit 7e11052
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,12 @@ function WarpDeplete:DisableDemoMode()
end

function WarpDeplete:HookObjectiveTracker()
local frame
hooksecurefunc(frame, "Show", function()
if not ObjectiveTrackerFrame then return end

hooksecurefunc(ObjectiveTrackerFrame, "Show", function()
-- Prevent objective tracker from re-showing
-- while WarpDeplete is shown
if self.isShown then frame:Hide() end
if self.isShown then ObjectiveTrackerFrame:Hide() end
end)
end

Expand Down

0 comments on commit 7e11052

Please # to comment.