Do not show size of folders
This commit is contained in:
parent
42c4ec9dad
commit
b8239ce608
1 changed files with 2 additions and 1 deletions
|
|
@ -241,7 +241,8 @@ impl Item {
|
||||||
children.push(widget::text(self.name.clone()).into());
|
children.push(widget::text(self.name.clone()).into());
|
||||||
|
|
||||||
//TODO: translate!
|
//TODO: translate!
|
||||||
{
|
//TODO: correct display of folder size?
|
||||||
|
if !self.metadata.is_dir() {
|
||||||
const KIB: u64 = 1024;
|
const KIB: u64 = 1024;
|
||||||
const MIB: u64 = 1024 * KIB;
|
const MIB: u64 = 1024 * KIB;
|
||||||
const GIB: u64 = 1024 * MIB;
|
const GIB: u64 = 1024 * MIB;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue