Cloudstorage - Add option to view unsupported files (#5131)

Option to show all files in cloudstorage also not supported by KOReader. We can also download any file.
To show all files in CS we need to enable option Show unsupported files in file manager (introducing in #5129)
Close: #5006
This commit is contained in:
Robert
2019-07-21 21:45:02 +02:00
committed by Frans de Jonge
parent 55973771f9
commit cbba7566b7
6 changed files with 48 additions and 27 deletions

View File

@@ -107,7 +107,8 @@ function DropBoxApi:listFolder(path, token)
type = tag,
})
--show only file with supported formats
elseif tag == "file" and DocumentRegistry:hasProvider(text) then
elseif tag == "file" and (DocumentRegistry:hasProvider(text)
or G_reader_settings:isTrue("show_unsupported")) then
table.insert(dropbox_file, {
text = text,
url = files.path_display,