[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:
1 parent
e261d95218
commit
2f335e2e6e
1 file changed
+3
@@ -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