Commit 3575fbc9 authored by Simpy's avatar Simpy 🐹
Browse files

unregister the calls after first time

parent 4def3e4c
......@@ -376,14 +376,20 @@ local function SkinItemFrame(frame)
end
end
function AS:Auctionator(event)
SkinOptions()
function AS:Auctionator(event, addon)
if addon ~= 'Auctionator' then return end
if event == 'AUCTION_HOUSE_SHOW' then
if event == 'ADDON_LOADED' then
SkinOptions()
AS:UnregisterSkinEvent(addon, event)
elseif event == 'AUCTION_HOUSE_SHOW' then
SkinMainFrames()
SkinImportExport()
SkinItemFrame(_G.AuctionatorAddItemFrame)
SkinItemFrame(_G.AuctionatorEditItemFrame)
AS:UnregisterSkinEvent(addon, event)
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment