Fix "Open next file" (#11272)

This commit is contained in:
hius07
2023-12-27 08:45:52 +02:00
committed by GitHub
parent b949d07f4f
commit 7a421ea3ab
2 changed files with 14 additions and 12 deletions

View File

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