fixed a bug where auctions and bids would not show without a refresh after restarting the ah interface
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
AuxVersion = '2.1.7'
|
||||
AuxVersion = '2.1.8'
|
||||
AuxAuthors = 'shirsig; Zerf; Zirco (Auctionator); Nimeral (Auctionator backport)'
|
||||
|
||||
local lastRightClickAction = GetTime()
|
||||
@@ -41,6 +41,10 @@ function Aux_OnEvent()
|
||||
Aux_OnAuctionHouseShow()
|
||||
elseif event == 'AUCTION_HOUSE_CLOSED' then
|
||||
Aux_OnAuctionHouseClosed()
|
||||
Aux.bids_loaded = false
|
||||
Aux.current_owner_page = nil
|
||||
elseif event == 'AUCTION_BIDDER_LIST_UPDATE' then
|
||||
Aux.bids_loaded = true
|
||||
elseif event == 'AUCTION_OWNED_LIST_UPDATE' then
|
||||
Aux.current_owner_page = Aux.last_owner_page_requested or 0
|
||||
end
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
this:RegisterEvent('ADDON_LOADED')
|
||||
this:RegisterEvent('AUCTION_HOUSE_SHOW')
|
||||
this:RegisterEvent('AUCTION_HOUSE_CLOSED')
|
||||
this:RegisterEvent('AUCTION_BIDDER_LIST_UPDATE')
|
||||
this:RegisterEvent('AUCTION_OWNED_LIST_UPDATE')
|
||||
</OnLoad>
|
||||
<OnEvent>
|
||||
|
||||
@@ -49,7 +49,9 @@ end
|
||||
function wait_for_results(k)
|
||||
local ok
|
||||
if state.job.type == 'bidder' then
|
||||
ok = true
|
||||
Aux.control.as_soon_as(function() return Aux.bids_loaded end, function()
|
||||
ok = true
|
||||
end)
|
||||
elseif state.job.type == 'owner' then
|
||||
if state.page == Aux.current_owner_page then
|
||||
ok = true
|
||||
|
||||
Reference in New Issue
Block a user