mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
when changing options in koptconfig dialog precache is disabled
Once koptconfig is finished the next page is cached immediately. This will make the configuration process more responsive.
This commit is contained in:
parent
389177bd51
commit
2f0cc5b827
@ -315,6 +315,10 @@ function KOPTReader:init()
|
||||
self:adjustCommands()
|
||||
end
|
||||
|
||||
function KOPTReader:redrawWithoutPrecache()
|
||||
self:show(self.pageno)
|
||||
end
|
||||
|
||||
function KOPTReader:adjustCommands()
|
||||
self.commands:del(KEY_A, nil,"A")
|
||||
self.commands:del(KEY_A, MOD_SHIFT, "A")
|
||||
@ -341,7 +345,7 @@ function KOPTReader:adjustCommands()
|
||||
self.commands:add({KEY_F,KEY_AA}, nil, "F",
|
||||
"change koptreader configuration",
|
||||
function(self)
|
||||
KOPTConfig:config(KOPTReader.redrawCurrentPage, self, self.configurable)
|
||||
KOPTConfig:config(KOPTReader.redrawWithoutPrecache, self, self.configurable)
|
||||
self:redrawCurrentPage()
|
||||
end
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user