mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[feat, UX] Gesture manager: add option - open previous document (#4641)
Fixes #4333.
This commit is contained in:
@@ -94,7 +94,12 @@ function FileManagerMenu:openLastDoc()
|
||||
end
|
||||
local ReaderUI = require("apps/reader/readerui")
|
||||
ReaderUI:showReader(last_file)
|
||||
self:onCloseFileManagerMenu()
|
||||
|
||||
-- only close menu if we were called from the menu
|
||||
if self.menu_container then
|
||||
self:onCloseFileManagerMenu()
|
||||
end
|
||||
|
||||
local FileManager = require("apps/filemanager/filemanager")
|
||||
FileManager.instance:onClose()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user