* Fix to hiding and showing of frames when the frame list is updated, so deleting a frame makes it disappear
James Whitehead II [01-25-08 - 18:59]
* Fix to hiding and showing of frames when the frame list is updated, so deleting a frame makes it disappear
diff --git a/PerfectRaid.lua b/PerfectRaid.lua
index 9b337a1..ec519e7 100644
--- a/PerfectRaid.lua
+++ b/PerfectRaid.lua
@@ -121,6 +121,19 @@ function PerfectRaid:Enable()
end
function PerfectRaid:UpdateRaidFrames()
+ -- Hide all existing raid frames, in case we deleted one
+ if not InCombatLockdown() then
+ local idx = 1
+ repeat
+ local name = "PRHeader"..idx
+ local header = getglobal(name)
+ if header then
+ header:Hide()
+ end
+ idx = idx + 1
+ until not header
+ end
+
-- Create our raid frames
for idx,entry in ipairs(self.db.profile.headers) do
self:CreateRaidFrame(idx)
diff --git a/PerfectRaid_Frames.lua b/PerfectRaid_Frames.lua
index e88e13e..adb49f1 100644
--- a/PerfectRaid_Frames.lua
+++ b/PerfectRaid_Frames.lua
@@ -608,7 +608,7 @@ function Frames:SaveEntry()
(numColumns or maxUnits or colSpacing or colAnchor) then
err = L["If you choose any of the column options, all of them become required fields. Please choose the number of columns, max units, column spacing and column anchor."]
elseif not filter and not partyFrame then
- err = L["You must select at least one class or group to display."]
+ --err = L["You must select at least one class or group to display."]
end
if err then