mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
PropertiesWindow: Show the file size in a human readable format
This commit is contained in:
parent
17c0349d23
commit
3f9ac88c6e
Notes:
sideshowbarker
2024-07-18 21:06:16 +09:00
Author: https://github.com/Granddave Commit: https://github.com/SerenityOS/serenity/commit/3f9ac88c6e7 Pull-request: https://github.com/SerenityOS/serenity/pull/5937
1 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include "PropertiesWindow.h"
|
||||
#include <AK/LexicalPath.h>
|
||||
#include <AK/NumberFormat.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <LibDesktop/Launcher.h>
|
||||
#include <LibGUI/BoxLayout.h>
|
||||
|
@ -128,7 +129,7 @@ PropertiesWindow::PropertiesWindow(const String& path, bool disable_rename, Wind
|
|||
}
|
||||
}
|
||||
|
||||
properties.append({ "Size:", String::formatted("{} bytes", st.st_size) });
|
||||
properties.append({ "Size:", human_readable_size_long(st.st_size) });
|
||||
properties.append({ "Owner:", String::formatted("{} ({})", owner_name, st.st_uid) });
|
||||
properties.append({ "Group:", String::formatted("{} ({})", group_name, st.st_gid) });
|
||||
properties.append({ "Created at:", GUI::FileSystemModel::timestamp_string(st.st_ctime) });
|
||||
|
|
Loading…
Add table
Reference in a new issue