Skip to content

Commit

Permalink
Range: fix boss radar not hiding if no previous range frame shown
Browse files Browse the repository at this point in the history
Also found weird behaviour with hide and restore, since bossrange passes force arg.
  • Loading branch information
Zidras committed Jan 5, 2025
1 parent cbabe4b commit 086a6be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DBM-Core/DBM-Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ local function currentFullDate()
end

DBM = {
Revision = parseCurseDate("20250105140835"),
Revision = parseCurseDate("20250105191020"),
DisplayVersion = "10.1.13 alpha", -- the string that is shown as version
ReleaseRevision = releaseDate(2024, 07, 20) -- the date of the latest stable version that is available, optionally pass hours, minutes, and seconds for multiple releases in one day
}
Expand Down
4 changes: 2 additions & 2 deletions DBM-Core/DBM-RangeCheck.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,7 @@ function rangeCheck:Show(range, filter, forceshow, redCircleNumPlayers, reverse,
if not radarFrame then
createRadarFrame()
end
mainFrame.previouslyShown = self:IsShown()
local restrictionsActive = DBM:HasMapRestrictions()
if (DBM.Options.RangeFrameFrames == "text" or DBM.Options.RangeFrameFrames == "both" or restrictionsActive) and not textFrame:IsShown() then
DBM:Debug("Range TEXT frame shown", 3)
Expand All @@ -1240,7 +1241,6 @@ function rangeCheck:Show(range, filter, forceshow, redCircleNumPlayers, reverse,
mainFrame.hideTime = hideTime and (GetTime() + hideTime) or 0
mainFrame.restrictions = restrictionsActive
mainFrame.onlySummary = onlySummary
mainFrame.previouslyShown = true
mainFrame.bossUnit = bossUnit
mainFrame.bossMode = bossUnit ~= nil
if not mainFrame.eventRegistered then
Expand Down Expand Up @@ -1272,7 +1272,7 @@ function rangeCheck:DisableBossMode()
mainFrame.range = mainFrame.previousRange
restoreRange = mainFrame.range
if not mainFrame.previouslyShown then
self:Hide()
self:Hide(true)
end
end
end
Expand Down

0 comments on commit 086a6be

Please sign in to comment.