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

@ -883,9 +883,14 @@ function IceCustomBar.prototype:Show(bShouldShow, bForceHide)
end
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
IceCustomBar.super.prototype.Show(self, true)
IceCustomBar.super.prototype.Show(self, self:IsEnabled())
elseif self.moduleSettings.displayMode == displayModes.ALWAYS then
if not self.bIsVisible then
IceCustomBar.super.prototype.Show(self, true)