mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Merge pull request #1226 from Frenzie/filesearcher
Filesearcher: added notification for no results
This commit is contained in:
@@ -89,7 +89,15 @@ function FileSearcher:close()
|
||||
if string.len(self.search_value) > 0 then
|
||||
self:readDir() -- TODO this probably doesn't need to be repeated once it's been done
|
||||
self:setSearchResults() -- TODO doesn't have to be repeated if the search term is the same
|
||||
self:showSearchResults() -- TODO something about no results
|
||||
if #self.results > 0 then
|
||||
self:showSearchResults() -- TODO something about no results
|
||||
else
|
||||
UIManager:show(
|
||||
InfoMessage:new{
|
||||
text = util.template(_("Found no files matching '%1'."), self.search_value)
|
||||
}
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user