bugfixes for the new search interface

This commit is contained in:
Manuel Simon Hirsig
2016-07-13 21:34:47 +02:00
parent 5d1b1842f5
commit 0a9f951fa1
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
Aux = {
version = '2.15.5',
version = '2.15.6',
blizzard_ui_shown = false,
orig = {},
}
+6 -4
View File
@@ -287,9 +287,11 @@ function public.execute(mode, filter_string)
end,
on_page_loaded = function(_, total_pages)
current_page = current_page + 1
total_pages = max(current_page, total_pages)
private.status_bar:update_status(100 * (current_query - 1) / getn(queries), 100 * (current_page - 1) / (total_pages + start_page - 1))
private.status_bar:set_text(format('Scanning %d / %d (Page %d / %d)', current_query, total_queries, current_page, (total_pages + start_page - 1)))
total_pages = total_pages + (start_page - 1)
total_pages = max(total_pages, 1)
current_page = min(current_page, total_pages)
private.status_bar:update_status(100 * (current_query - 1) / getn(queries), 100 * (current_page - 1) / total_pages)
private.status_bar:set_text(format('Scanning %d / %d (Page %d / %d)', current_query, total_queries, current_page, total_pages))
end,
on_page_scanned = function()
private.results_listing:SetDatabase()
@@ -321,7 +323,7 @@ function public.execute(mode, filter_string)
if current_query then
search.next = {current_query, current_page + 1}
else
search.next = {start_page, start_query}
search.next = {start_query, start_page}
end
if private.current_search() == search then