diff --git a/configuration/ui/settings_general.ui b/configuration/ui/settings_general.ui
--- a/configuration/ui/settings_general.ui
+++ b/configuration/ui/settings_general.ui
@@ -44,6 +44,13 @@
+ -
+
+
+ Auto-expand folders containing unread articles
+
+
+
-
diff --git a/interfaces/akregator.kcfg b/interfaces/akregator.kcfg
--- a/interfaces/akregator.kcfg
+++ b/interfaces/akregator.kcfg
@@ -10,6 +10,11 @@
Hides feeds with no unread articles
false
+
+
+ Auto-expand folders containing unread articles
+ false
+
Show Quick Filter Bar
diff --git a/src/actions/actionmanagerimpl.cpp b/src/actions/actionmanagerimpl.cpp
--- a/src/actions/actionmanagerimpl.cpp
+++ b/src/actions/actionmanagerimpl.cpp
@@ -132,6 +132,13 @@
return;
}
a->setChecked(Settings::hideReadFeeds());
+
+ a = action(QStringLiteral("auto_expand_folders"));
+ if (!a) {
+ qCCritical(AKREGATOR_LOG) << "Action not found";
+ return;
+ }
+ a->setChecked(Settings::autoExpandFolders());
}
void ActionManagerImpl::slotNodeSelected(TreeNode *node)
@@ -536,6 +543,12 @@
action->setText(i18n("Hide Read Feeds"));
action->setChecked(Settings::hideReadFeeds());
connect(action, &QAction::triggered, subscriptionListView, &SubscriptionListView::slotSetHideReadFeeds);
+
+ action = coll->addAction(QStringLiteral("auto_expand_folders"));
+ action->setCheckable(true);
+ action->setText(i18n("Auto-expand folders with unread articles"));
+ action->setChecked(Settings::autoExpandFolders());
+ connect(action, &QAction::triggered, subscriptionListView, &SubscriptionListView::slotSetAutoExpandFolders);
}
void ActionManagerImpl::initTabWidget(TabWidget *tabWidget)
diff --git a/src/data/akregator_part.rc b/src/data/akregator_part.rc
--- a/src/data/akregator_part.rc
+++ b/src/data/akregator_part.rc
@@ -1,5 +1,5 @@
-
+