DEBUG: more debug messages

This commit is contained in:
Francesco Abbate 2021-07-25 20:57:54 +02:00
parent 219b2a1d5c
commit 26873d59a3
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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