raid-compact-layout: only move existing group headers

This commit is contained in:
shagu
2025-04-06 22:05:57 +02:00
parent 05e51caebd
commit b0bad07e70
+2
View File
@@ -40,6 +40,7 @@ module.enable = function(self)
-- wait for the game to be loaded -- wait for the game to be loaded
local delay = CreateFrame("Frame") local delay = CreateFrame("Frame")
delay:SetScript("OnUpdate", function() delay:SetScript("OnUpdate", function()
if ShaguTweaksRaidHeaders then
-- modify group headers -- modify group headers
for i=1, 8 do for i=1, 8 do
if ShaguTweaksRaidHeaders[i] then if ShaguTweaksRaidHeaders[i] then
@@ -57,6 +58,7 @@ module.enable = function(self)
ShaguTweaksRaidHeaders[i]:SetAlpha(.75) ShaguTweaksRaidHeaders[i]:SetAlpha(.75)
end end
end end
end
-- disable delay -- disable delay
this:Hide() this:Hide()