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
2024-06-14 12:48:51 +02:00
committed by GitHub
parent e3237ef8eb
commit 6400c3a546

View File

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