readcollection: fix mandatory for deleted files (#10488)

This commit is contained in:
hius07
2023-05-28 08:05:07 +03:00
committed by GitHub
parent 46578c0e12
commit 177092243f

View File

@@ -42,7 +42,7 @@ function ReadCollection:prepareList(collection_name)
file = file_path,
text = v.file:gsub(".*/", ""),
dim = not file_exists,
mandatory = file_exists and util.getFriendlySize(lfs.attributes(file_path, "size") or 0),
mandatory = file_exists and util.getFriendlySize(lfs.attributes(file_path, "size") or 0) or "",
select_enabled = file_exists,
})
end