mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
readhistory: fix file move/rename (#8575)
Reload updated history after file move/rename.
This commit is contained in:
@@ -258,6 +258,7 @@ function ReadHistory:updateItemByPath(old_path, new_path)
|
||||
self.hist[i].file = new_path
|
||||
self.hist[i].text = new_path:gsub(".*/", "")
|
||||
self:_flush()
|
||||
self:reload()
|
||||
self.hist[i].callback = function()
|
||||
selectCallback(new_path)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user