From 590c9993e6d8793a43176d65c63460c56c310d39 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Fri, 29 Apr 2011 19:19:31 +0200 Subject: [PATCH] Add a temporary fix for the GearManager list --- Broker_Equipment.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Broker_Equipment.lua b/Broker_Equipment.lua index 7ddf1f0..70ab9e1 100644 --- a/Broker_Equipment.lua +++ b/Broker_Equipment.lua @@ -97,12 +97,8 @@ local function OnClick(self, button) CharacterFrame_Expand() end - -- '3' is the index of the GearManager tab if(not _G[PAPERDOLL_SIDEBARS[3].frame]:IsShown()) then - PaperDollFrame_SetSidebar(nil, 3) - - -- List doesn't generate on a fresh reload or if the CharacterFrame hasn't been shown yet - -- I'll have to take a look at this later + parent:Show() -- XXX: Temporary fix end end end @@ -163,5 +159,11 @@ function parent:PLAYER_REGEN_ENABLED() pendingName, pendingIcon = nil, nil end +parent:SetScript('OnUpdate', function(self) + PaperDollFrame_SetSidebar(nil, 3) + self:Hide() +end) + parent:SetScript('OnEvent', function(self, event, ...) self[event](self, ...) end) parent:RegisterEvent('PLAYER_LOGIN') +parent:Hide() -- 1.7.9.5