fix: update menu with show-only-unread

This commit is contained in:
relikd
2025-10-27 17:16:31 +01:00
parent 575d1eaec8
commit 184e5c0882
2 changed files with 2 additions and 2 deletions

View File

@@ -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
}
}

View File

@@ -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];