From 0f7a9c681c4f7336362bf8a5d1c41f2bc8ed9215 Mon Sep 17 00:00:00 2001 From: Wagner Soares Date: Thu, 19 Feb 2026 17:57:02 -0300 Subject: viewproperties: Add per-folder zoom Adds ZoomLevel flag to the directory and uses it instead of global settings when globalViewProps is set to false. CCBUG: 169405 --- src/views/dolphinview.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/views/dolphinview.h') diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index e3f83979c..67233b668 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -790,6 +790,11 @@ private Q_SLOTS: */ void updateSortFoldersFirst(bool foldersFirst); + /** + * Cache out zoom mode changes to prevent constant Settings requests + */ + void updateDefaultZoomLevel(); + /** * Updates the view properties of the current URL to the * sorting of hidden files given by \a hiddenLast. @@ -1007,6 +1012,9 @@ private: // resolution scroll wheels) int m_controlWheelAccumulatedDelta; + // Cached out default zoom level after view mode changes + int m_defaultZoomLevel = -1; + QList m_selectedUrls; // Used for making the view to remember selections after F5 and file operations bool m_clearSelectionBeforeSelectingNewItems; bool m_markFirstNewlySelectedItemAsCurrent; -- cgit v1.3.1