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

@ -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