┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/viewproperties.h
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2026-05-03 14:53:01 +0200
committerMéven Car <[email protected]>2026-06-13 12:24:37 +0200
commit70f34211cb4ad1f3f6170ded062bafff85d66643 (patch)
treecdcbce9a16cc6deed31f0550e7867b0335968ea2 /src/views/viewproperties.h
parent169332e5691267fd69ac20ac2b1aa06441c588db (diff)
Add A restore view properties to defaults button
The button allows to restore to defaults, in case you are using the per-folder view properties settings. The button disables or enables itself whether or not it matches the defaults view settings.
Diffstat (limited to 'src/views/viewproperties.h')
-rw-r--r--src/views/viewproperties.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/views/viewproperties.h b/src/views/viewproperties.h
index 801d33845..c203e2f0c 100644
--- a/src/views/viewproperties.h
+++ b/src/views/viewproperties.h
@@ -125,6 +125,15 @@ public:
*/
QString destinationDir(const QString &subDir) const;
+ /**
+ * Restore the view settings to the default settings
+ * Depending on the view type.
+ *
+ * Only useful when in per-folder settings
+ */
+ void restoreToDefaults();
+ bool isDefaults() const;
+
private:
/**
* Returns the view-mode prefix when storing additional properties for