fix: update menu with show-only-unread
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user