summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-12-01 13:01:47 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-12-01 13:01:47 +0200
commitdf2b288cf9cea0032e8df1f8b5113da7ed8acfa5 (patch)
tree1b297ae5e00921deac9ada8350ab38b289acf46b
parent2f4cc8dc3f76b862d9c17d96561ba54fe77d0199 (diff)
SidebarWidget: Show up to 100 feed entries
-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 */