Skip to content

Commit

Permalink
Expander: Fixed an error on non-Retail servers.
Browse files Browse the repository at this point in the history
Also trims trailing whitespace.
  • Loading branch information
Ravendwyr committed May 30, 2021
1 parent 26f5280 commit f15f3f5
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions Modules/Expander.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,17 @@ function Expander:Refresh(fromCombat)
DBI:Hide(icon)
end
end

MiniMapInstanceDifficulty:Hide()
GuildInstanceDifficulty:Hide()
MiniMapChallengeMode:Hide()


if Chinchilla:IsRetail() then
MiniMapInstanceDifficulty:Hide()
GuildInstanceDifficulty:Hide()
MiniMapChallengeMode:Hide()
end

if((Chinchilla:GetModule("Location", true) and Chinchilla:GetModule("Location"):IsEnabled())) then
Chinchilla:GetModule("Location"):Hide()
end

if(self.db.profile.hideCombat) then
MinimapBackdrop:RegisterEvent('PLAYER_REGEN_DISABLED')
MinimapBackdrop:RegisterEvent('PLAYER_REGEN_ENABLED')
Expand All @@ -82,7 +84,7 @@ function Expander:Refresh(fromCombat)
elseif(event == 'PLAYER_REGEN_ENABLED') then
show = true
end

Expander:Refresh(true)
end)
end
Expand All @@ -103,7 +105,7 @@ function Expander:Refresh(fromCombat)
MinimapBackdrop:Show()

Minimap:GetParent():SetAlpha(origAlpha or 1)

if Appearance then
Appearance:SetAlpha()
Appearance:SetFrameStrata()
Expand All @@ -120,12 +122,14 @@ function Expander:Refresh(fromCombat)
DBI:Refresh(icon)
end
end

if((Chinchilla:GetModule("Location", true) and Chinchilla:GetModule("Location"):IsEnabled())) then
Chinchilla:GetModule("Location"):Show()
end

MiniMapInstanceDifficulty_Update()

if Chinchilla:IsRetail() then
MiniMapInstanceDifficulty_Update()
end

if(self.db.profile.hideCombat and fromCombat ~= true) then
MinimapBackdrop:UnregisterEvent('PLAYER_REGEN_DISABLED')
Expand Down

0 comments on commit f15f3f5

Please sign in to comment.