Skip to content

Commit

Permalink
FileChooser: fixes (koreader#11300)
Browse files Browse the repository at this point in the history
  • Loading branch information
hius07 committed Jan 10, 2024
1 parent 5a3f737 commit 4ddc0f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/ui/widget/filechooser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function FileChooser:show_file(filename, fullpath)
for _, pattern in ipairs(self.exclude_files) do
if filename:match(pattern) then return false end
end
if not FileChooser.show_unsupported and self.file_filter ~= nil and not self.file_filter(filename) then return false end
if not self.show_unsupported and self.file_filter ~= nil and not self.file_filter(filename) then return false end
if not FileChooser.show_finished and fullpath ~= nil and filemanagerutil.getStatus(fullpath) == "complete" then return false end
return true
end
Expand Down Expand Up @@ -266,7 +266,7 @@ function FileChooser:getList(path, collate)
else -- error, probably "permission denied"
if unreadable_dir_content[path] then
-- Add this dummy item that will be replaced with a message by genItemTable()
table.insert(dirs, FileChooser:getListItem(path, "./.", path, lfs.attributes(path)), collate)
table.insert(dirs, self:getListItem(path, "./.", path, {}))
-- If we knew about some content (if we had come up from them
-- to this directory), have them shown
for k, v in pairs(unreadable_dir_content[path]) do
Expand Down

0 comments on commit 4ddc0f2

Please sign in to comment.