From 573049f77e3d49ebf783e56a697051d1b3865993 Mon Sep 17 00:00:00 2001 From: Parnic Date: Thu, 18 May 2023 10:15:38 -0500 Subject: [PATCH] Fix Custom Bar showing empty bar in Missing mode --- changelog.md | 1 + modules/CustomBar.lua | 6 +++++- this_version.md | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 9770923..21cedd5 100644 --- a/changelog.md +++ b/changelog.md @@ -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: diff --git a/modules/CustomBar.lua b/modules/CustomBar.lua index fb79bc9..708fc93 100644 --- a/modules/CustomBar.lua +++ b/modules/CustomBar.lua @@ -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 diff --git a/this_version.md b/this_version.md index 900d68a..c4e9162 100644 --- a/this_version.md +++ b/this_version.md @@ -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: