BlizzBugsSuck

16 - Fix the retrieving frame of guild tradeskill

When opening a guild tradeskill window, the tradeskill frame gets stuck on "retrieving information". You have to click again on "view all" to force it to refresh.

The following snippet (dry-coded but based on working code) fixes this so the frame shows the list of recipes as soon as it become available:

local frame = CreateFrame("Frame")
frame:RegisterEvent('ADDON_LOADED')
frame:SetScript('OnEvent', function(_, _, name)
  if name == 'Blizzard_TradeSkillUI' then
    hooksecurefunc('TradeSkillFrame_OnEvent', function(_, event)
      if event == 'GUILD_TRADESKILL_UPDATE' and IsTradeSkillGuild() and TradeSkillFrame:IsShown() then
        TradeSkillFrame_Update()
      end
    end)
    TradeSkillFrame:RegisterEvent('GUILD_TRADESKILL_UPDATE')
    frame:UnregisterEvent('ADDON_LOADED')
  end
end)
User When Change
Adirelle Nov 12, 2013 at 09:42 UTC Changed description:
  When opening a guild tradeskill window, the tradeskill frame gets stuck on "retrieving information". You have to click again on "view all" to force it to refresh.

- The following snippet fixes this so the frame shows the list of recipes as soon as it become available:
+ The following snippet (dry-coded but based on working code) fixes this so the frame shows the list of recipes as soon as it become available:
  <<code lua>>
  local frame = CreateFrame("Frame")
Adirelle Nov 12, 2013 at 09:40 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

Facts

Last updated
Oct 02, 2014
Reported
Nov 12, 2013
Status
New - Issue has not had initial review yet.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
1

Reported by

Possible assignees