From d69d0d67655e55746c6449a7b5681a3b8c42c9bd Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Fri, 25 Jan 2008 18:59:17 +0000 Subject: [PATCH] * Fix to hiding and showing of frames when the frame list is updated, so deleting a frame makes it disappear --- PerfectRaid.lua | 13 +++++++++++++ PerfectRaid_Frames.lua | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) 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 -- 1.7.9.5