reverted the change to wait for full information when scanning. rather be missing some names than waiting twice as long

This commit is contained in:
Manuel Simon Hirsig
2015-10-16 22:38:00 +02:00
parent ef88779f0a
commit 2a16fb7073
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -91,9 +91,9 @@
</Layer>
</Layers>
<Scripts>
<OnShow>
<OnLoad>
this.completor = Aux.completion.completor(this)
</OnShow>
</OnLoad>
<OnTextChanged>
this.completor.suggest()
</OnTextChanged>
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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,