mirror of
https://github.com/koreader/koreader
synced 2024-11-10 01:10:34 +00:00
ReaderUI: add seamless
argument to switchDocument (#12290)
This commit is contained in:
parent
030f4a15d4
commit
c213bd779c
@ -890,7 +890,7 @@ function ReaderUI:reloadDocument(after_close_callback, seamless)
|
||||
self:showReader(file, provider, seamless)
|
||||
end
|
||||
|
||||
function ReaderUI:switchDocument(new_file)
|
||||
function ReaderUI:switchDocument(new_file, seamless)
|
||||
if not new_file then return end
|
||||
|
||||
-- Mimic onShowingReader's refresh optimizations
|
||||
@ -902,7 +902,7 @@ function ReaderUI:switchDocument(new_file)
|
||||
self.highlight:onClose() -- close highlight dialog if any
|
||||
self:onClose(false)
|
||||
|
||||
self:showReader(new_file)
|
||||
self:showReader(new_file, nil, seamless)
|
||||
end
|
||||
|
||||
function ReaderUI:onOpenLastDoc()
|
||||
|
Loading…
Reference in New Issue
Block a user