Styletweaks menu: Ignore ._ files (#12022)

Ignore files starting with "._" (metafiles by MacOS), that will otherwise show up in the Styletweaks menu. (These files are alrady ignored in the File manager, even when 'show hidden files' is enabled.)
This commit is contained in:
jonnyl2 authored and GitHub committed 2024-06-14 12:48:51 +02:00
1 parent e3237ef8eb
commit 6400c3a546
1 file changed
+1 -1
@@ -632,7 +632,7 @@ You can enable individual tweaks on this book with a tap, or view more details a
local mode = lfs.attributes(dir.."/"..f, "mode")
if mode == "directory" then
table.insert(dir_list, f)
elseif mode == "file" and string.match(f, "%.css$") then
elseif mode == "file" and string.match(f, "%.css$") and not util.stringStartsWith(f, "._") then
table.insert(file_list, f)
end
end