FileManager: fix up arrow issue

This commit is contained in:
Frans de Jonge
2017-02-25 14:57:30 +01:00
parent c855494ba0
commit 1ed0ce0c21

View File

@@ -154,7 +154,7 @@ function FileChooser:genItemTableFromPath(path)
end
table.sort(dirs, sorting)
if path ~= "/" then table.insert(dirs, 1, {name = ".."}) end
if path ~= "/" then table.insert(dirs, 1, {name = ".."}) end
table.sort(files, sorting)
local item_table = {}
@@ -172,7 +172,7 @@ function FileChooser:genItemTableFromPath(path)
istr = util.template(_("%1 items"), num_items)
end
table.insert(item_table, {
text = dir.name.."/",
text = dir.name == ".." and "⬆ ../" or dir.name.."/",
mandatory = istr,
path = subdir_path
})