From 184e5c0882a59d26f2be31e44931819386a6e469 Mon Sep 17 00:00:00 2001 From: relikd Date: Mon, 27 Oct 2025 17:16:31 +0100 Subject: [PATCH] fix: update menu with show-only-unread --- baRSS/Status Bar Menu/BarMenu.m | 2 +- baRSS/Status Bar Menu/NSMenu+Ext.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/baRSS/Status Bar Menu/BarMenu.m b/baRSS/Status Bar Menu/BarMenu.m index abd0bc3..f756bb1 100644 --- a/baRSS/Status Bar Menu/BarMenu.m +++ b/baRSS/Status Bar Menu/BarMenu.m @@ -132,12 +132,12 @@ if (item) { // nil on last loop (aka main menu, see below) [item.submenu setHeaderHasUnread:uct]; [item setTitleCount:uct.unread]; + item.hidden = NO; item = item.parentItem; } } // call on main menu [self.statusItem.mainMenu setHeaderHasUnread:itms.firstObject]; - // TODO: need to re-create groups if user chose to hide already read articles } } diff --git a/baRSS/Status Bar Menu/NSMenu+Ext.m b/baRSS/Status Bar Menu/NSMenu+Ext.m index 152969a..635d8a6 100644 --- a/baRSS/Status Bar Menu/NSMenu+Ext.m +++ b/baRSS/Status Bar Menu/NSMenu+Ext.m @@ -60,7 +60,7 @@ typedef NS_ENUM(NSInteger, MenuItemTag) { if (unread == 0 && ((fg.type == FEED && UserPrefsBool(Pref_globalUnreadOnly)) || (fg.type == GROUP && UserPrefsBool(Pref_groupUnreadOnly)))) { - return nil; + item.hidden = YES; } item.submenu = [[NSMenu alloc] initWithTitle:t];