bugfix
This commit is contained in:
@@ -144,16 +144,15 @@ do
|
|||||||
|
|
||||||
function private.initialize_search_state()
|
function private.initialize_search_state()
|
||||||
searches[0] = {
|
searches[0] = {
|
||||||
|
placeholder = true,
|
||||||
table = m.tables[1],
|
table = m.tables[1],
|
||||||
status_bar = m.status_bars[1],
|
status_bar = m.status_bars[1],
|
||||||
records = {},
|
|
||||||
filter_string = ''
|
filter_string = ''
|
||||||
}
|
}
|
||||||
searches[0].table:SetDatabase(searches[0].records)
|
searches[0].table:SetDatabase({})
|
||||||
searches[0].status_bar:update_status(100, 100)
|
searches[0].status_bar:update_status(100, 100)
|
||||||
searches[0].status_bar:set_text('')
|
searches[0].status_bar:set_text('')
|
||||||
m.update_search(0)
|
m.update_search(0)
|
||||||
searches[0].filter_string = nil
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
@@ -495,7 +494,7 @@ function public.execute(resume, real_time)
|
|||||||
if resume then
|
if resume then
|
||||||
m.current_search().table:SetSelectedRecord()
|
m.current_search().table:SetSelectedRecord()
|
||||||
else
|
else
|
||||||
if filter_string ~= m.current_search().filter_string then
|
if filter_string ~= m.current_search().filter_string or m.current_search().placeholder then
|
||||||
m.new_search(filter_string, aux.util.join(aux.util.map(queries, function(filter) return filter.prettified end), ';'))
|
m.new_search(filter_string, aux.util.join(aux.util.map(queries, function(filter) return filter.prettified end), ';'))
|
||||||
else
|
else
|
||||||
m.current_search().records = {}
|
m.current_search().records = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user