1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:27:35 +00:00

FileManager: Show directory size and file count in PropertiesWindow

When displaying properties for a directory, the PropertiesWindow now
shows: the total number of files, the total number of subdirectories,
and the total size of all files, in bytes.

These numbers are calculated on a background thread, and current
progress is displayed to the user every 100ms.
This commit is contained in:
Tim Ledbetter 2023-02-01 17:30:35 +00:00 committed by Sam Atkins
parent d2e1f6ff57
commit baaf97787b
4 changed files with 105 additions and 6 deletions

View file

@ -83,21 +83,21 @@
}
@GUI::Widget {
fixed_height: 14
fixed_height: 28
layout: @GUI::HorizontalBoxLayout {
spacing: 12
}
@GUI::Label {
text: "Size:"
text_alignment: "CenterLeft"
text_alignment: "TopLeft"
fixed_width: 80
}
@GUI::Label {
name: "size"
text: "5.9 KiB (6097 bytes)"
text_alignment: "CenterLeft"
text_alignment: "TopLeft"
}
}