summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/sidebarwidget.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c
index b312f41a..6bb6d7a1 100644
--- a/src/ui/sidebarwidget.c
+++ b/src/ui/sidebarwidget.c
@@ -123,6 +123,11 @@ static void updateItems_SidebarWidget_(iSidebarWidget *d) {
123 iZap(on); 123 iZap(on);
124 iConstForEach(PtrArray, i, listEntries_Feeds()) { 124 iConstForEach(PtrArray, i, listEntries_Feeds()) {
125 const iFeedEntry *entry = i.ptr; 125 const iFeedEntry *entry = i.ptr;
126 /* For more items, one can always see "about:feeds". A large number of items
127 is a bit difficult to navigate in the sidebar. */
128 if (numItems_ListWidget(d->list) == 100) {
129 break;
130 }
126 /* Exclude entries that are too old for Visited to keep track of. */ 131 /* Exclude entries that are too old for Visited to keep track of. */
127 if (secondsSince_Time(&now, &entry->discovered) > maxAge_Visited) { 132 if (secondsSince_Time(&now, &entry->discovered) > maxAge_Visited) {
128 break; /* the rest are even older */ 133 break; /* the rest are even older */