From 70f34211cb4ad1f3f6170ded062bafff85d66643 Mon Sep 17 00:00:00 2001 From: Méven Car Date: Sun, 3 May 2026 14:53:01 +0200 Subject: 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. --- src/views/viewproperties.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/views/viewproperties.h') 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 -- cgit v1.3.1