|
|
@ -78,6 +78,7 @@ function showReader(file, pass)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function showHomePage(path)
|
|
|
|
function showHomePage(path)
|
|
|
|
|
|
|
|
local exclude_dirs = {"%.sdr$"}
|
|
|
|
local FileManager = FileChooser:new{
|
|
|
|
local FileManager = FileChooser:new{
|
|
|
|
title = "FileManager",
|
|
|
|
title = "FileManager",
|
|
|
|
path = path,
|
|
|
|
path = path,
|
|
|
@ -85,7 +86,13 @@ function showHomePage(path)
|
|
|
|
height = Screen:getHeight(),
|
|
|
|
height = Screen:getHeight(),
|
|
|
|
is_borderless = true,
|
|
|
|
is_borderless = true,
|
|
|
|
has_close_button = false,
|
|
|
|
has_close_button = false,
|
|
|
|
filter = function(filename)
|
|
|
|
dir_filter = function(dirname)
|
|
|
|
|
|
|
|
for _, pattern in ipairs(exclude_dirs) do
|
|
|
|
|
|
|
|
if dirname:match(pattern) then return end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
return true
|
|
|
|
|
|
|
|
end,
|
|
|
|
|
|
|
|
file_filter = function(filename)
|
|
|
|
if DocumentRegistry:getProvider(filename) then
|
|
|
|
if DocumentRegistry:getProvider(filename) then
|
|
|
|
return true
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
end
|
|
|
|