diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-01-17 19:13:16 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-01-17 19:13:16 +0200 |
commit | 83a6847babf282f1d334039f13e003773fd70cfc (patch) | |
tree | 2f56a93496654292aa273e7627faa4cc8ecd71fa /src/ui | |
parent | 25ef7c7ce7f74e2c509251145afb25e7ae2f7d1e (diff) |
SidebarWidget: Fixed actions getting hidden on Feeds tab
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/sidebarwidget.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 | |||
286 | iZap(on); | 286 | iZap(on); |
287 | size_t numItems = 0; | 287 | size_t numItems = 0; |
288 | isEmpty = iTrue; | 288 | isEmpty = iTrue; |
289 | iConstForEach(PtrArray, i, listEntries_Feeds()) { | 289 | const iPtrArray *feedEntries = listEntries_Feeds(); |
290 | iConstForEach(PtrArray, i, feedEntries) { | ||
290 | const iFeedEntry *entry = i.ptr; | 291 | const iFeedEntry *entry = i.ptr; |
291 | if (isHidden_FeedEntry(entry)) { | 292 | if (isHidden_FeedEntry(entry)) { |
292 | continue; /* A hidden entry. */ | 293 | continue; /* A hidden entry. */ |
@@ -350,7 +351,7 @@ static void updateItemsWithFlags_SidebarWidget_(iSidebarWidget *d, iBool keepAct | |||
350 | } | 351 | } |
351 | /* Actions. */ | 352 | /* Actions. */ |
352 | if (!isMobile) { | 353 | if (!isMobile) { |
353 | if (!keepActions && !isEmpty) { | 354 | if (!keepActions && !isEmpty_PtrArray(feedEntries)) { |
354 | addActionButton_SidebarWidget_(d, | 355 | addActionButton_SidebarWidget_(d, |
355 | check_Icon | 356 | check_Icon |
356 | " ${sidebar.action.feeds.markallread}", | 357 | " ${sidebar.action.feeds.markallread}", |