From 963aa9ac7c2656901dd85b25219da11271efd3e9 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Sat, 31 Aug 2024 10:49:40 +0300 Subject: [PATCH] filemanagerhistory: fix update list after deleting a file --- frontend/apps/filemanager/filemanagerhistory.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frontend/apps/filemanager/filemanagerhistory.lua b/frontend/apps/filemanager/filemanagerhistory.lua index 6875d64e5..06191b551 100644 --- a/frontend/apps/filemanager/filemanagerhistory.lua +++ b/frontend/apps/filemanager/filemanagerhistory.lua @@ -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, }, {