refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-27 12:47:29 +02:00
parent abcc782daa
commit b734d14bea
12 changed files with 86 additions and 121 deletions
+4 -4
View File
@@ -80,13 +80,13 @@ do
function previous_search()
search_box:ClearFocus()
update_search(search_index - 1)
set_subtab(RESULTS)
subtab = RESULTS
end
function next_search()
search_box:ClearFocus()
update_search(search_index + 1)
set_subtab(RESULTS)
subtab = RESULTS
end
end
@@ -281,7 +281,7 @@ function start_search(queries, continuation)
search.status_bar:set_text 'Scan complete'
if current_search == search and frame.results:IsVisible() and getn(search.records) == 0 then
set_subtab(SAVED)
subtab = SAVED
end
search.active = false
@@ -362,7 +362,7 @@ function public.execute(resume, real_time)
current_search.active = true
update_start_stop()
set_subtab(RESULTS)
subtab = RESULTS
if real_time then
start_real_time_scan(queries[1], nil, continuation)
else