Don't refresh nicknames if nicknames are disabled

This commit is contained in:
Tercio Jose
2022-05-29 14:11:32 -03:00
parent 0bb2a71291
commit 53798fbd2f
6 changed files with 80 additions and 51 deletions
+2 -1
View File
@@ -129,7 +129,7 @@ end
--create the screen panel, goes into the UIParent and show cooldowns
function Details.CooldownTracking.CreateScreenFrame()
DetailsOnlineCDTrackerScreenPanel = CreateFrame("frame", "DetailsOnlineCDTrackerScreenPanel", UIParent, "BackdropTemplate")
screenPanel = DetailsOnlineCDTrackerScreenPanel
local screenPanel = DetailsOnlineCDTrackerScreenPanel
screenPanel:Hide()
screenPanel:SetSize(Details.ocd_tracker.width, Details.ocd_tracker.height)
screenPanel:SetPoint("center", 0, 0)
@@ -184,6 +184,7 @@ end
if (unitCooldowns) then
local unitInfo = openRaidLib.GetUnitInfo(unitId)
if (unitInfo) then
local screenPanel = DetailsOnlineCDTrackerScreenPanel
for spellId, cooldownInfo in pairs(unitCooldowns) do
--get a bar
local cooldownFrame = Details.CooldownTracking.GetOrCreateNewCooldownFrame(screenPanel, screenPanel.statusBarFrameIndex)