┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings/viewmodes/contentdisplaytab.h
diff options
context:
space:
mode:
authorNico Kreipke <[email protected]>2024-03-02 17:44:41 +0100
committerMéven Car <[email protected]>2024-03-07 15:11:34 +0000
commit815bb8d514d70d79ef5f3fd7fffa95850f761d55 (patch)
tree0fb58af1cf4960d7f23b0219b46daa9763c0581e /src/settings/viewmodes/contentdisplaytab.h
parent67910325b5768143a9e35e8e5cd75af705dcbd4c (diff)
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:
Diffstat (limited to 'src/settings/viewmodes/contentdisplaytab.h')
-rw-r--r--src/settings/viewmodes/contentdisplaytab.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings/viewmodes/contentdisplaytab.h b/src/settings/viewmodes/contentdisplaytab.h
index 3550569fd..05e8414e1 100644
--- a/src/settings/viewmodes/contentdisplaytab.h
+++ b/src/settings/viewmodes/contentdisplaytab.h
@@ -36,6 +36,7 @@ private:
QRadioButton *m_numberOfItems;
QRadioButton *m_sizeOfContents;
+ QRadioButton *m_noDirectorySize;
QSpinBox *m_recursiveDirectorySizeLimit;
QRadioButton *m_useRelatetiveDates;
QRadioButton *m_useShortDates;