mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 09:48:47 +00:00
GDirectoryModel: Include directories in total byte count
I don't know what's really right or wrong here. It seems fine to also include the directories in the total byte count, and it makes it a bit easier to stay consistent when adding up size numbers elsewhere.
This commit is contained in:
parent
1632f6b2dd
commit
566eb58170
Notes:
sideshowbarker
2024-07-19 12:09:05 +09:00
Author: https://github.com/awesomekling
Commit: 566eb58170
1 changed files with 1 additions and 2 deletions
|
@ -317,8 +317,7 @@ void GDirectoryModel::update()
|
|||
auto& entries = S_ISDIR(st.st_mode) ? m_directories : m_files;
|
||||
entries.append(move(entry));
|
||||
|
||||
if (S_ISREG(entry.mode))
|
||||
m_bytes_in_files += st.st_size;
|
||||
m_bytes_in_files += st.st_size;
|
||||
}
|
||||
|
||||
did_update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue