From 83a6847babf282f1d334039f13e003773fd70cfc Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Mon, 17 Jan 2022 19:13:16 +0200 Subject: SidebarWidget: Fixed actions getting hidden on Feeds tab --- src/ui/sidebarwidget.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index f5beb785..16677f9e 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c @@ -286,7 +286,8 @@ static void updateItemsWithFlags_SidebarWidget_(iSidebarWidget *d, iBool keepAct iZap(on); size_t numItems = 0; isEmpty = iTrue; - iConstForEach(PtrArray, i, listEntries_Feeds()) { + const iPtrArray *feedEntries = listEntries_Feeds(); + iConstForEach(PtrArray, i, feedEntries) { const iFeedEntry *entry = i.ptr; if (isHidden_FeedEntry(entry)) { continue; /* A hidden entry. */ @@ -350,7 +351,7 @@ static void updateItemsWithFlags_SidebarWidget_(iSidebarWidget *d, iBool keepAct } /* Actions. */ if (!isMobile) { - if (!keepActions && !isEmpty) { + if (!keepActions && !isEmpty_PtrArray(feedEntries)) { addActionButton_SidebarWidget_(d, check_Icon " ${sidebar.action.feeds.markallread}", -- cgit v1.2.3