Commit 07503450 authored by Simpy's avatar Simpy 🐹

allow our option to apply to the blizzard cd text if we have it reverse toggled

parent 83cd481a
......@@ -200,7 +200,7 @@ end
function E:ToggleBlizzardCooldownText(cd, timer, request)
-- we should hide the blizzard cooldown text when ours are enabled
if timer and cd and cd.SetHideCountdownNumbers then
local forceHide = (timer.timerOptions and timer.timerOptions.hideBlizzard) or (E.db and E.db.cooldown and E.db.cooldown.hideBlizzard)
local forceHide = cd.hideText or (timer.timerOptions and timer.timerOptions.hideBlizzard) or (E.db and E.db.cooldown and E.db.cooldown.hideBlizzard)
if request then
return forceHide or E:Cooldown_IsEnabled(timer)
else
......
......@@ -1067,6 +1067,7 @@ function AB:UpdateChargeCooldown(button, duration)
cd.hideText = (duration and duration > 1.5) or (AB.db.chargeCooldown == false) or nil
if cd.timer and (oldstate ~= cd.hideText) then
E:Cooldown_ForceUpdate(cd.timer)
E:ToggleBlizzardCooldownText(cd, cd.timer)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment