file count: Fixes #5843 (#5858)

pull/5862/head
yparitcher 4 years ago committed by GitHub
parent 5692f7df75
commit 3e00e686b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -62,8 +62,8 @@ function FileChooser:init()
if ok then
for f in iter, dir_obj do
if count_only then
if (not self.show_hidden and not util.stringStartsWith(f, "."))
or (self.show_hidden and f ~= "." and f ~= ".." and self.dir_filter(f) and not util.stringStartsWith(f, "._"))
if self.dir_filter(f) and ((not self.show_hidden and not util.stringStartsWith(f, "."))
or (self.show_hidden and f ~= "." and f ~= ".." and not util.stringStartsWith(f, "._")))
then
table.insert(dirs, true)
end

Loading…
Cancel
Save