mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
ReaderUI: add seamless argument to switchDocument (#12290)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user