mirror of
https://github.com/koreader/koreader.git
synced 2025-12-24 12:14:05 +01:00
refactor: use new KeyValuePage widget for displaying statistics
This commit is contained in:
@@ -10,6 +10,7 @@ local PicDocument = Document:new{
|
||||
|
||||
function PicDocument:init()
|
||||
if not pic then pic = require("ffi/pic") end
|
||||
local ok
|
||||
ok, self._document = pcall(pic.openDocument, self.file)
|
||||
if not ok then
|
||||
error("Failed to open jpeg image")
|
||||
|
||||
Reference in New Issue
Block a user