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 | |
parent | 25ef7c7ce7f74e2c509251145afb25e7ae2f7d1e (diff) |
SidebarWidget: Fixed actions getting hidden on Feeds tab
-rw-r--r-- | res/about/version.gmi | 3 | ||||
-rw-r--r-- | src/ui/sidebarwidget.c | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/res/about/version.gmi b/res/about/version.gmi index 9a8f5a21..b2700598 100644 --- a/res/about/version.gmi +++ b/res/about/version.gmi | |||
@@ -6,6 +6,9 @@ | |||
6 | ``` | 6 | ``` |
7 | # Release notes | 7 | # Release notes |
8 | 8 | ||
9 | ## 1.10.1 | ||
10 | * Fixed bottom actions of the Feeds sidebar getting hidden when all entries are read. This prevented switching between Unread/All filter modes. | ||
11 | |||
9 | ## 1.10 | 12 | ## 1.10 |
10 | New features: | 13 | New features: |
11 | * macOS: Trackpad swipe navigation. | 14 | * macOS: Trackpad swipe navigation. |
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}", |