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:
parent
d2e1f6ff57
commit
baaf97787b
4 changed files with 105 additions and 6 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue