mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
make readerconfig independent of koptoptions
So that other readers could reuse readerconfig
This commit is contained in:
@@ -12,12 +12,13 @@ DjvuDocument = Document:new{
|
||||
dc_null = DrawContext.new(),
|
||||
screen_size = Screen:getSize(),
|
||||
screen_dpi = Device:getModel() == "KindlePaperWhite" and 212 or 167,
|
||||
options = KoptOptions,
|
||||
configurable = Configurable,
|
||||
koptinterface = KoptInterface,
|
||||
}
|
||||
|
||||
function DjvuDocument:init()
|
||||
self.configurable:loadDefaults()
|
||||
self.configurable:loadDefaults(self.options)
|
||||
if not validDjvuFile(self.file) then
|
||||
self.error_message = "Not a valid DjVu file"
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user