2
0
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:
ziz57 2024-08-04 19:02:45 +01:00 committed by GitHub
parent 030f4a15d4
commit c213bd779c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()