mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user