Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Auctionator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ local forceMsgAreaUpdate = false;

local scandata;
local sorteddata = {};
local savedscandata = {};
local basedata;

local currentAuctionItemName = "";
Expand Down Expand Up @@ -333,6 +334,13 @@ end
-----------------------------------------

function Auctionator_OnAuctionUpdate ()
if (savedscandata ~= nil and savedscandata[currentAuctionItemName] ~= nil) then
scandata = savedscandata[currentAuctionItemName];
Auctionator_Process_Scandata ();
Auctionator_CalcBaseData();
processing_state = KM_NULL_STATE;
return;
end

if (processing_state ~= KM_POSTQUERY) then
return;
Expand Down Expand Up @@ -383,6 +391,7 @@ function Auctionator_OnAuctionUpdate ()

if (table.getn (scandata) > 0) then
Auctionator_Process_Scandata ();
savedscandata[currentAuctionItemName] = scandata
Auctionator_CalcBaseData();
else
Auctionator_SetMessage ("No auctions were found for \n\n"..currentAuctionItemName);
Expand Down Expand Up @@ -569,6 +578,7 @@ function Auctionator_OnAuctionHouseClosed()
AuctionatorOptionsFrame:Hide();
AuctionatorDescriptionFrame:Hide();
Auctionator_Sell_Template:Hide();
savedscandata = {}

end

Expand Down