Updated treeview to match convention.

This commit is contained in:
Adam Harrison 2022-05-03 23:13:49 -04:00
parent 91797d65d1
commit 8345a04d04
1 changed files with 1 additions and 1 deletions

View File

@ -454,7 +454,7 @@ function TreeView:toggle_expand(toggle)
end
local hovered_dir = core.project_dir_by_name(item.dir_name)
if hovered_dir and hovered_dir.files_limit then
core.update_project_subdir(hovered_dir, item.filename, item.expanded)
core.update_project_subdir(hovered_dir, item.depth == 0 and "" or item.filename, item.expanded)
end
end
end