proper exit when pressing HOME, store settings etc

This commit is contained in:
HW
2012-03-04 21:39:34 +01:00
parent aa51a0c7db
commit 4f46f9fa7a
2 changed files with 18 additions and 12 deletions

View File

@@ -100,7 +100,7 @@ if lfs.attributes(ARGV[optind], "mode") == "directory" then
if pdffile ~= nil then
if PDFReader:open(pdffile,"") then -- TODO: query for password
PDFReader:goto(tonumber(PDFReader.settings:readsetting("last_page") or 1))
PDFReader:inputloop()
running = PDFReader:inputloop()
end
else
running = false