From 9e7bdf49e9b4b5e38bc2a95d7e7aa6b607c86468 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Wed, 22 Dec 2021 23:39:26 +0100 Subject: [PATCH] Revert "Merge pull request #697 from Guldoman/treeview_remove_changed" This reverts commit 4e078cc2171f1c01150b09db7d091a2dfdbf715a, reversing changes made to 0c488c94920a1100986fa73e11ccc4a2c5cd5667. --- data/core/init.lua | 2 +- data/plugins/treeview.lua | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/data/core/init.lua b/data/core/init.lua index bb3647ec..a85b5d0d 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -1158,7 +1158,7 @@ end -- no-op but can be overrided by plugins -function core.on_dirmonitor_modify(dir, filepath) +function core.on_dirmonitor_modify() end diff --git a/data/plugins/treeview.lua b/data/plugins/treeview.lua index f7c7f5ba..b6de33b2 100644 --- a/data/plugins/treeview.lua +++ b/data/plugins/treeview.lua @@ -45,14 +45,6 @@ function TreeView:new() self.item_icon_width = 0 self.item_text_spacing = 0 - - local on_dirmonitor_modify = core.on_dirmonitor_modify - function core.on_dirmonitor_modify(dir, filepath) - if self.cache[dir.name] then - self.cache[dir.name][filepath] = nil - end - on_dirmonitor_modify(dir, filepath) - end end