made folder size reflect the number of elements

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97
2023-11-19 15:58:30 +02:00
parent 6b777653a5
commit 26931475ae
6 changed files with 19 additions and 18 deletions

View File

@ -417,7 +417,7 @@ QVariant ResourceFolderModel::data(const QModelIndex& index, int role) const
case DateColumn:
return m_resources[row]->dateTimeChanged();
case SizeColumn:
return StringUtils::humanReadableFileSize(m_resources[row]->size(), true);
return m_resources[row]->sizeStr();
default:
return {};
}