mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[fix, plugins] NewsDownloader: close document on go to folder (#5064)
Same as https://github.com/koreader/koreader/pull/5063. Also see https://github.com/koreader/koreader/issues/5060#issuecomment-499416617.
This commit is contained in:
@@ -89,6 +89,9 @@ function NewsDownloader:addToMainMenu(menu_items)
|
||||
text = _("Go to news folder"),
|
||||
callback = function()
|
||||
local FileManager = require("apps/filemanager/filemanager")
|
||||
if self.ui.document then
|
||||
self.ui:onClose()
|
||||
end
|
||||
if FileManager.instance then
|
||||
FileManager.instance:reinit(news_download_dir_path)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user