mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fix "Move current book to archive" (#11321)
updateItemByPath has recently been replaced with updateItem in both
readhistory and readcollection.
Fixes: aabd6d7a26 ("File browser, Collection: improve group actions (#11178)")
Fixes: https://github.com/koreader/koreader/issues/11320
This commit is contained in:
@@ -103,8 +103,8 @@ function MoveToArchive:onMoveToArchive(do_copy)
|
||||
else
|
||||
text = _("Book moved.\nDo you want to open it from the archive folder?")
|
||||
FileManager:moveFile(document_full_path, self.archive_dir_path)
|
||||
require("readhistory"):updateItemByPath(document_full_path, dest_file) -- (will update "lastfile" if needed)
|
||||
require("readcollection"):updateItemByPath(document_full_path, dest_file)
|
||||
require("readhistory"):updateItem(document_full_path, dest_file) -- (will update "lastfile" if needed)
|
||||
require("readcollection"):updateItem(document_full_path, dest_file)
|
||||
end
|
||||
DocSettings.updateLocation(document_full_path, dest_file, do_copy)
|
||||
UIManager:show(ConfirmBox:new{
|
||||
|
||||
Reference in New Issue
Block a user