Do not show size of folders

This commit is contained in:
Jeremy Soller 2024-01-05 14:45:45 -07:00
parent 42c4ec9dad
commit b8239ce608
No known key found for this signature in database
GPG key ID: DCFCA852D3906975

View file

@ -241,7 +241,8 @@ impl Item {
children.push(widget::text(self.name.clone()).into());
//TODO: translate!
{
//TODO: correct display of folder size?
if !self.metadata.is_dir() {
const KIB: u64 = 1024;
const MIB: u64 = 1024 * KIB;
const GIB: u64 = 1024 * MIB;