feat: simplify options for show-only-unread

This commit is contained in:
relikd
2025-10-27 17:36:07 +01:00
parent 184e5c0882
commit cf3e9e4b4a
4 changed files with 5 additions and 6 deletions

View File

@@ -57,9 +57,9 @@ typedef NS_ENUM(NSInteger, MenuItemTag) {
NSUInteger unread = unreadMap[[t substringFromIndex:2]].unread;
// Check user preferences to show only unread entries
if (unread == 0 &&
((fg.type == FEED && UserPrefsBool(Pref_globalUnreadOnly)) ||
(fg.type == GROUP && UserPrefsBool(Pref_groupUnreadOnly)))) {
if (unread == 0
&& (fg.type == FEED || fg.type == GROUP)
&& UserPrefsBool(Pref_groupUnreadOnly)) {
item.hidden = YES;
}