skin: fix auctionhouse race condition

This commit is contained in:
shagu
2016-11-26 01:00:40 +01:00
parent c642c13d76
commit e01bfd6555
-1
View File
@@ -98,7 +98,6 @@ pfUI.utils:CreateBackdrop(TicketStatusFrame)
-- This hackfix rearranges it, by setting the width of it, as soon as -- This hackfix rearranges it, by setting the width of it, as soon as
-- the auctionhouse window is ready to get hooked. -- the auctionhouse window is ready to get hooked.
local pfAuctionHouseFix = CreateFrame("Frame", nil) local pfAuctionHouseFix = CreateFrame("Frame", nil)
pfAuctionHouseFix:RegisterEvent("AUCTION_HOUSE_SHOW")
pfAuctionHouseFix:RegisterEvent("ADDON_LOADED") pfAuctionHouseFix:RegisterEvent("ADDON_LOADED")
pfAuctionHouseFix:SetScript("OnEvent", function () pfAuctionHouseFix:SetScript("OnEvent", function ()
if not pfAuctionFrame_OnShow and AuctionFrame_OnShow then if not pfAuctionFrame_OnShow and AuctionFrame_OnShow then