mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fix "Open next file" (#11272)
This commit is contained in:
@@ -169,12 +169,8 @@ function ReaderStatus:openFileBrowser()
|
||||
end
|
||||
|
||||
function ReaderStatus:onOpenNextDocumentInFolder()
|
||||
local FileManager = require("apps/filemanager/filemanager")
|
||||
if not FileManager.instance then
|
||||
self.ui:showFileManager()
|
||||
end
|
||||
local next_file = FileManager.instance.file_chooser:getNextFile(self.document.file)
|
||||
FileManager.instance:onClose()
|
||||
local FileChooser = require("ui/widget/filechooser")
|
||||
local next_file = FileChooser:getNextFile(self.document.file)
|
||||
if next_file then
|
||||
self.ui:switchDocument(next_file)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user