bugfixes for the new search interface
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
Aux = {
|
Aux = {
|
||||||
version = '2.15.5',
|
version = '2.15.6',
|
||||||
blizzard_ui_shown = false,
|
blizzard_ui_shown = false,
|
||||||
orig = {},
|
orig = {},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -287,9 +287,11 @@ function public.execute(mode, filter_string)
|
|||||||
end,
|
end,
|
||||||
on_page_loaded = function(_, total_pages)
|
on_page_loaded = function(_, total_pages)
|
||||||
current_page = current_page + 1
|
current_page = current_page + 1
|
||||||
total_pages = max(current_page, total_pages)
|
total_pages = total_pages + (start_page - 1)
|
||||||
private.status_bar:update_status(100 * (current_query - 1) / getn(queries), 100 * (current_page - 1) / (total_pages + start_page - 1))
|
total_pages = max(total_pages, 1)
|
||||||
private.status_bar:set_text(format('Scanning %d / %d (Page %d / %d)', current_query, total_queries, current_page, (total_pages + start_page - 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,
|
end,
|
||||||
on_page_scanned = function()
|
on_page_scanned = function()
|
||||||
private.results_listing:SetDatabase()
|
private.results_listing:SetDatabase()
|
||||||
@@ -321,7 +323,7 @@ function public.execute(mode, filter_string)
|
|||||||
if current_query then
|
if current_query then
|
||||||
search.next = {current_query, current_page + 1}
|
search.next = {current_query, current_page + 1}
|
||||||
else
|
else
|
||||||
search.next = {start_page, start_query}
|
search.next = {start_query, start_page}
|
||||||
end
|
end
|
||||||
|
|
||||||
if private.current_search() == search then
|
if private.current_search() == search then
|
||||||
|
|||||||
Reference in New Issue
Block a user