mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Merge pull request #147 from giorgio130/master
Make cbz show up in file chooser, fix #119
This commit is contained in:
@@ -131,3 +131,4 @@ function PdfDocument:drawPage(target, x, y, rect, pageno, zoom, rotation, gamma,
|
||||
end
|
||||
|
||||
DocumentRegistry:addProvider("pdf", "application/pdf", PdfDocument)
|
||||
DocumentRegistry:addProvider("cbz", "application/cbz", PdfDocument)
|
||||
|
||||
@@ -36,6 +36,9 @@ function DocSettings:open(docfile)
|
||||
-- we handle reader setting as special case
|
||||
conf_path = "settings.reader.lua"
|
||||
else
|
||||
if lfs.attributes("./history","mode") ~= "directory" then
|
||||
lfs.mkdir("history")
|
||||
end
|
||||
conf_path = self:getHistoryPath(docfile)
|
||||
end
|
||||
-- construct settings obj
|
||||
|
||||
Reference in New Issue
Block a user