FileSearcher: allow call with a search string (#8073)

pull/8054/head
hius07 3 years ago committed by GitHub
parent fa4784cf13
commit 3c597d1d84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -126,10 +126,10 @@ function FileSearcher:close()
end end
end end
function FileSearcher:onShowFileSearch() function FileSearcher:onShowFileSearch(search_string)
self.search_dialog = InputDialog:new{ self.search_dialog = InputDialog:new{
title = _("Enter filename to search for"), title = _("Enter filename to search for"),
input = self.search_value, input = search_string or self.search_value,
width = math.floor(Screen:getWidth() * 0.9), width = math.floor(Screen:getWidth() * 0.9),
buttons = { buttons = {
{ {

Loading…
Cancel
Save