diff options
Diffstat (limited to 'data/core')
| -rw-r--r-- | data/core/init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/data/core/init.lua b/data/core/init.lua index aba10d8f..ba53d1a7 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -197,14 +197,14 @@ end function core.project_subdir_set_show(dir, filename, show) - dir.shown_subdir[filename] = show if dir.files_limit and not dir.force_rescan then local fullpath = dir.name .. PATHSEP .. filename - local success = (show and system.watch_dir_add or system.watch_dir_rm)(dir.watch_id, fullpath) - if not success then - core.log("Internal warning: error calling system.watch_dir_%s", show and "add" or "rm") + if not (show and system.watch_dir_add or system.watch_dir_rm)(dir.watch_id, fullpath) then + return false end end + dir.shown_subdir[filename] = show + return true end |
