Quantcast

* "Hide Blizzard Party" should no longer pop up in battlegrounds, etc.

James Whitehead II [01-30-08 - 22:15]
* "Hide Blizzard Party" should no longer pop up in battlegrounds, etc.
Filename
PerfectRaid_Config.lua
diff --git a/PerfectRaid_Config.lua b/PerfectRaid_Config.lua
index 8127553..22ff289 100644
--- a/PerfectRaid_Config.lua
+++ b/PerfectRaid_Config.lua
@@ -113,6 +113,7 @@ function Config:CreateOptions(opt)
 	end
 end

+local old_ShowPartyFrame = ShowPartyFrame
 function Config:PartyVisibility()
 	local hideparty = PerfectRaid.db.profile.hideparty
 	if hideparty then
@@ -125,6 +126,8 @@ function Config:PartyVisibility()
 		if PartyMemberBackground and SHOW_PARTY_BACKGROUND == "1" then
 			PartyMemberBackground:Hide()
 		end
+
+		ShowPartyFrame = function() end
 		HidePartyFrame()
 	elseif self.hidingparty then
 		self.hidingparty = false
@@ -152,6 +155,7 @@ function Config:PartyVisibility()
 		if PartyMemberBackground and SHOW_PARTY_BACKGROUND == "1" then
 			PartyMemberBackground:Show()
 		end
+		ShowPartyFrame = old_ShowPartyFrame
 		ShowPartyFrame()
 	end
 end