filechooser: fix bug with "unreadable content" (#10283)

This commit is contained in:
hius07
2023-04-01 20:32:59 +03:00
committed by GitHub
parent 5648c942c1
commit b98fee3dd0

View File

@@ -405,7 +405,7 @@ function FileChooser:changeToPath(path, focused_path)
end
if not unreadable_dir_content[path][focused_path] then
unreadable_dir_content[path][focused_path] = {
name = focused_path:sub(#path+2),
text = focused_path:sub(#path+2),
fullpath = focused_path,
attr = lfs.attributes(focused_path),
}