Fix Custom Bar showing empty bar in Missing mode

This commit is contained in:
Parnic
2023-05-18 10:15:38 -05:00
parent 8dc173ae81
commit 573049f77e
3 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,7 @@ v1.14.21:
- Increased maximum scale/zoom to 400%, by request.
- Fixed TargetCC/FocusCC modules on Wrath Classic.
- Fixed disabled Buff/Debuff Watchers showing a static gray bar when set to When Missing or Always display modes.
- Fixed Buff/Debuff Watchers showing an empty bar when set to Missing mode. If the background was disabled, this looked like just a floating spell icon.
v1.14.20:

View File

@ -822,7 +822,11 @@ function IceCustomBar.prototype:UpdateCustomBar(unit, fromUpdate)
self:UpdateBar(self.auraDuration ~= 0 and remaining / self.auraDuration or 0, "undef")
else
self:UpdateBar(0, "undef")
local updateVal = 0
if self.moduleSettings.displayMode == displayModes.MISSING then
updateVal = 1
end
self:UpdateBar(updateVal, "undef")
self:Show(false)
if not self:ShouldAlwaysSubscribe() then
self.handlesOwnUpdates = false

View File

@ -5,6 +5,7 @@ v1.14.21:
- Increased maximum scale/zoom to 400%, by request.
- Fixed TargetCC/FocusCC modules on Wrath Classic.
- Fixed disabled Buff/Debuff Watchers showing a static gray bar when set to When Missing or Always display modes.
- Fixed Buff/Debuff Watchers showing an empty bar when set to Missing mode. If the background was disabled, this looked like just a floating spell icon.
v1.14.20: