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)'
|
AuxAuthors = 'shirsig; Zerf; Zirco (Auctionator); Nimeral (Auctionator backport)'
|
||||||
|
|
||||||
local lastRightClickAction = GetTime()
|
local lastRightClickAction = GetTime()
|
||||||
@@ -41,6 +41,10 @@ function Aux_OnEvent()
|
|||||||
Aux_OnAuctionHouseShow()
|
Aux_OnAuctionHouseShow()
|
||||||
elseif event == 'AUCTION_HOUSE_CLOSED' then
|
elseif event == 'AUCTION_HOUSE_CLOSED' then
|
||||||
Aux_OnAuctionHouseClosed()
|
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
|
elseif event == 'AUCTION_OWNED_LIST_UPDATE' then
|
||||||
Aux.current_owner_page = Aux.last_owner_page_requested or 0
|
Aux.current_owner_page = Aux.last_owner_page_requested or 0
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
this:RegisterEvent('ADDON_LOADED')
|
this:RegisterEvent('ADDON_LOADED')
|
||||||
this:RegisterEvent('AUCTION_HOUSE_SHOW')
|
this:RegisterEvent('AUCTION_HOUSE_SHOW')
|
||||||
this:RegisterEvent('AUCTION_HOUSE_CLOSED')
|
this:RegisterEvent('AUCTION_HOUSE_CLOSED')
|
||||||
|
this:RegisterEvent('AUCTION_BIDDER_LIST_UPDATE')
|
||||||
this:RegisterEvent('AUCTION_OWNED_LIST_UPDATE')
|
this:RegisterEvent('AUCTION_OWNED_LIST_UPDATE')
|
||||||
</OnLoad>
|
</OnLoad>
|
||||||
<OnEvent>
|
<OnEvent>
|
||||||
|
|||||||
@@ -49,7 +49,9 @@ end
|
|||||||
function wait_for_results(k)
|
function wait_for_results(k)
|
||||||
local ok
|
local ok
|
||||||
if state.job.type == 'bidder' then
|
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
|
elseif state.job.type == 'owner' then
|
||||||
if state.page == Aux.current_owner_page then
|
if state.page == Aux.current_owner_page then
|
||||||
ok = true
|
ok = true
|
||||||
|
|||||||
Reference in New Issue
Block a user