mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:48:14 +00:00
LibGUI: Show human readable size in filemanager
The size is visible only in TableView mode of the filemanager.
This commit is contained in:
parent
8fe7983cc5
commit
49a062f81d
2 changed files with 4 additions and 5 deletions
|
@ -25,6 +25,7 @@
|
|||
*/
|
||||
|
||||
#include <AK/LexicalPath.h>
|
||||
#include <AK/NumberFormat.h>
|
||||
#include <AK/QuickSort.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <LibCore/DirIterator.h>
|
||||
|
@ -439,7 +440,7 @@ Variant FileSystemModel::data(const ModelIndex& index, ModelRole role) const
|
|||
case Column::Name:
|
||||
return node.name;
|
||||
case Column::Size:
|
||||
return (int)node.size;
|
||||
return human_readable_size(node.size);
|
||||
case Column::Owner:
|
||||
return name_for_uid(node.uid);
|
||||
case Column::Group:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue