From 177092243fd0b9ad216d5e9ec7c8d26dde6f5cd5 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Sun, 28 May 2023 08:05:07 +0300 Subject: [PATCH] readcollection: fix mandatory for deleted files (#10488) --- frontend/readcollection.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/readcollection.lua b/frontend/readcollection.lua index b35beaf91..7b235243e 100644 --- a/frontend/readcollection.lua +++ b/frontend/readcollection.lua @@ -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