Clear TreeView cache when closing project

This commit is contained in:
Francesco Abbate 2022-01-07 10:40:26 +01:00
parent 7ded5c8199
commit 143b389365
1 changed files with 6 additions and 0 deletions

View File

@ -402,6 +402,12 @@ function RootView:draw(...)
menu:draw() menu:draw()
end end
local on_quit_project = core.on_quit_project
function core.on_quit_project()
view.cache = {}
on_quit_project()
end
local function is_project_folder(path) local function is_project_folder(path)
return common.basename(core.project_dir) == path return common.basename(core.project_dir) == path
end end