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