diff --git a/data/core/init.lua b/data/core/init.lua index b522c94c..fda0faff 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -174,6 +174,7 @@ local function scan_project_folder(index) local dir = core.project_directories[index] local t, entries_count = get_directory_files(dir, dir.name, "", {}, nil, config.max_project_files) if entries_count > config.max_project_files then + print("DEBUG setting files limit FLAG for", dir.name) dir.files_limit = true if core.status_view then -- May be not yet initialized. show_max_files_warning() @@ -1041,7 +1042,8 @@ function core.dir_rescan_add_job(dir, filepath) -- check if the directory is in the project files list, if not exit local dir_index, dir_match = file_search(dir.files, {filename = dirpath, type = "dir"}) local dir_filename = dir.files[dir_index].filename - if not dir_match or not core.project_subdir_is_shown(dir, dir_filename) then return end + if not dir_match or not core.project_subdir_is_shown(dir, dir_filename) then + print("DEBUG do not start a rescan job for", abs_dirpath); return end end local new_time = system.get_time() + 1 diff --git a/data/plugins/treeview.lua b/data/plugins/treeview.lua index dd3beb41..fc585d52 100644 --- a/data/plugins/treeview.lua +++ b/data/plugins/treeview.lua @@ -219,6 +219,7 @@ function TreeView:on_mouse_pressed(button, x, y, clicks) if hovered_item.expanded then core.scan_project_subdir(hovered_item.dir, hovered_item.filename) end + print("DEBUG setting show flag to", hovered_item.expanded) core.project_subdir_set_show(hovered_item.dir, hovered_item.filename, hovered_item.expanded) end end