2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00

filemanagerhistory: fix update list after deleting a file

This commit is contained in:
hius07 2024-08-31 10:49:40 +03:00 committed by Frans de Jonge
parent ee5a4169d1
commit 963aa9ac7c

View File

@ -194,13 +194,8 @@ function FileManagerHistory:onMenuHold(item)
text = _("Delete"),
enabled = not (item.dim or is_currently_opened),
callback = function()
local function post_delete_callback()
UIManager:close(self.histfile_dialog)
self._manager:updateItemTable()
self._manager.files_updated = true
end
local FileManager = require("apps/filemanager/filemanager")
FileManager:showDeleteFileDialog(file, post_delete_callback)
FileManager:showDeleteFileDialog(file, close_dialog_update_callback)
end,
},
{