From 2a16fb7073d0591a18c1b9c8db729262dd2772f4 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Fri, 16 Oct 2015 22:38:00 +0200 Subject: [PATCH] reverted the change to wait for full information when scanning. rather be missing some names than waiting twice as long --- buy.xml | 4 ++-- completion.lua | 4 ++-- core.lua | 4 ++-- scan.lua | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/buy.xml b/buy.xml index c85b5b8..178ed9f 100644 --- a/buy.xml +++ b/buy.xml @@ -91,9 +91,9 @@ - + this.completor = Aux.completion.completor(this) - + this.completor.suggest() diff --git a/completion.lua b/completion.lua index c9424dd..dd9c1a1 100644 --- a/completion.lua +++ b/completion.lua @@ -2,7 +2,7 @@ Aux.completion = {} local NUM_MATCHES = 5 -local fuzzy, make_suggestions +local fuzzy, generate_suggestions local item_names = {} @@ -76,7 +76,7 @@ function Aux.completion.completor(edit_box) value = suggestion, notCheckable = true, func = function() - self:set_quietly(edit_box, this.value) + self.set_quietly(this.value) end, } end diff --git a/core.lua b/core.lua index 125915d..3d76f99 100644 --- a/core.lua +++ b/core.lua @@ -413,7 +413,7 @@ function Aux_ContainerFrameItemButton_OnClick(button) and (PanelTemplates_GetSelectedTab(AuctionFrame) == 1 or PanelTemplates_GetSelectedTab(AuctionFrame) == Aux.tabs.buy.index) then if PanelTemplates_GetSelectedTab(AuctionFrame) == Aux.tabs.buy.index then - Aux.completion.set_quietly(AuxBuyNameInputBox, container_item.name) + AuxBuyNameInputBox.completor.set_quietly(container_item.name) end return elseif AUX_SELL_SHORTCUT and IsAltKeyDown()then @@ -426,7 +426,7 @@ function Aux_ContainerFrameItemButton_OnClick(button) if PanelTemplates_GetSelectedTab(AuctionFrame) ~= Aux.tabs.buy.index then AuctionFrameTab_OnClick(Aux.tabs.buy.index) end - Aux.completion.set_quietly(AuxBuyNameInputBox, container_item.name) + AuxBuyNameInputBox.completor.set_quietly(container_item.name) Aux.buy.SearchButton_onclick() return end diff --git a/scan.lua b/scan.lua index 3bb7c5b..ce099f7 100644 --- a/scan.lua +++ b/scan.lua @@ -131,12 +131,12 @@ function submit_query(k) state.job.on_submit_query() end wait_for_results(function() - wait_for_complete_results(function() + --wait_for_complete_results(function() if state.job.on_page_loaded then state.job.on_page_loaded(state.page) end k() - end)end) + end)--end) QueryAuctionItems( state.job.query.name, state.job.query.min_level,