Fix custom bar showing when disabled and set to Missing

Fixes wowace ticket #343
This commit is contained in:
Parnic
2023-05-18 10:12:17 -05:00
parent 5e04ace0f4
commit 8dc173ae81
3 changed files with 9 additions and 2 deletions

View File

@ -4,6 +4,7 @@ v1.14.21:
- Increased maximum scale/zoom to 400%, by request. - Increased maximum scale/zoom to 400%, by request.
- Fixed TargetCC/FocusCC modules on Wrath Classic. - 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.
v1.14.20: v1.14.20:

View File

@ -883,9 +883,14 @@ function IceCustomBar.prototype:Show(bShouldShow, bForceHide)
end end
if self.moduleSettings.displayMode == displayModes.MISSING then if self.moduleSettings.displayMode == displayModes.MISSING then
IceCustomBar.super.prototype.Show(self, not bShouldShow) local show = not bShouldShow
if show and not self:IsEnabled() then
show = false
end
IceCustomBar.super.prototype.Show(self, show)
elseif self.moduleSettings.displayMode == displayModes.WHEN_TARGETING and self.target then elseif self.moduleSettings.displayMode == displayModes.WHEN_TARGETING and self.target then
IceCustomBar.super.prototype.Show(self, true) IceCustomBar.super.prototype.Show(self, self:IsEnabled())
elseif self.moduleSettings.displayMode == displayModes.ALWAYS then elseif self.moduleSettings.displayMode == displayModes.ALWAYS then
if not self.bIsVisible then if not self.bIsVisible then
IceCustomBar.super.prototype.Show(self, true) IceCustomBar.super.prototype.Show(self, true)

View File

@ -4,6 +4,7 @@ v1.14.21:
- Increased maximum scale/zoom to 400%, by request. - Increased maximum scale/zoom to 400%, by request.
- Fixed TargetCC/FocusCC modules on Wrath Classic. - 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.
v1.14.20: v1.14.20: