]> cloud.milkyroute.net Git - dolphin.git/commit
Add option to completely disable directory size counting
authorNico Kreipke <dev@nkreipke.de>
Sat, 2 Mar 2024 16:44:41 +0000 (17:44 +0100)
committerMéven Car <meven.car@kdemail.net>
Thu, 7 Mar 2024 15:11:34 +0000 (15:11 +0000)
commit815bb8d514d70d79ef5f3fd7fffa95850f761d55
tree0fb58af1cf4960d7f23b0219b46daa9763c0581e
parent67910325b5768143a9e35e8e5cd75af705dcbd4c
Add option to completely disable directory size counting

Dolphin shows the size of directories by listing their contents, which
for some users might cause unwanted load on the file system.
Depending on the size of the subdirectories in question and how the
storage is accessed, this might cause noticeable delays and even
freezing.

This commit adds a new option under "View -> Content Display" that
enables users to set "Folder size:" to "No size", completely disabling
directory size counting. Directory size counting is still enabled by
default.

As a third option for "Folder size" is added, the DirectorySizeCount
boolean setting is replaced with a DirectorySizeMode enum setting. The
old setting is migrated using a kconf_update script.

FEATURE: 477187
GUI:
doc/index.docbook
src/CMakeLists.txt
src/kitemviews/kfileitemlistwidget.cpp
src/kitemviews/kfileitemmodel.cpp
src/kitemviews/kfileitemmodelrolesupdater.cpp
src/settings/dolphin_contentdisplaysettings.kcfg
src/settings/dolphin_directorysizemode.py [new file with mode: 0644]
src/settings/dolphin_directorysizemode.upd [new file with mode: 0644]
src/settings/viewmodes/contentdisplaytab.cpp
src/settings/viewmodes/contentdisplaytab.h