Skip to content

Commit

Permalink
fix: Add additional fallback for objective tracker hiding
Browse files Browse the repository at this point in the history
  • Loading branch information
happenslol committed Aug 11, 2024
1 parent 2fb9091 commit 5e2ab17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,19 @@ function WarpDeplete:ShowBlizzardObjectiveTracker()
return
end

-- FIXME(happens): See HideBlizzardObjectiveTracker
ObjectiveTrackerFrame:SetAlpha(1)

if ObjectiveTrackerFrame:GetParent() == self.frames.hiddenObjectiveTrackerParent then
ObjectiveTrackerFrame:SetParent(self.originalObjectiveTrackerParent or UIParent)
end
end

function WarpDeplete:HideBlizzardObjectiveTracker()
-- FIXME(happens): The reparenting method seems to not work for some people.
-- As an additional fallback, we set the alpha to 0.
ObjectiveTrackerFrame:SetAlpha(0)

self.originalObjectiveTrackerParent = ObjectiveTrackerFrame:GetParent()
ObjectiveTrackerFrame:SetParent(self.frames.hiddenObjectiveTrackerParent)
end
Expand Down
2 changes: 1 addition & 1 deletion WarpDeplete.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Title: WarpDeplete
## Notes-ruRU: WarpDeplete - таймер для подземелий М+ с гибкими настройками
## Author: Happens
## Version: 3.0.5
## Version: 3.0.6
## SavedVariables: WarpDepleteDB
## IconTexture: Interface\AddOns\WarpDeplete\logo
## X-Curse-Project-ID: 460155
Expand Down

0 comments on commit 5e2ab17

Please sign in to comment.