Merge pull request #147 from giorgio130/master

Make cbz show up in file chooser, fix #119
This commit is contained in:
Huang Xin
2013-07-09 04:26:35 -07:00
2 changed files with 4 additions and 0 deletions

View File

@@ -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)

View File

@@ -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