mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
ReaderStatus: end book action: delete file: go to current directory in FM (#8042)
Go to the directory of the deleted file, instead of the folder you happend to switch into the reader from as this may have changed (via changing books from history etc)
This commit is contained in:
@@ -6,6 +6,7 @@ local Event = require("ui/event")
|
||||
local InfoMessage = require("ui/widget/infomessage")
|
||||
local InputContainer = require("ui/widget/container/inputcontainer")
|
||||
local UIManager = require("ui/uimanager")
|
||||
local util = require("util")
|
||||
local _ = require("gettext")
|
||||
local T = require("ffi/util").template
|
||||
|
||||
@@ -222,7 +223,8 @@ function ReaderStatus:deleteFile(file, text_end_book)
|
||||
if FileManager.instance then
|
||||
FileManager.instance.file_chooser:refreshPath()
|
||||
else
|
||||
FileManager:showFiles()
|
||||
local path = util.splitFilePathName(file)
|
||||
FileManager:showFiles(path)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user