Skip to content

Commit

Permalink
Fix visual feedback on smart folder mark all read
Browse files Browse the repository at this point in the history
Issue #1727
Credit to makigumo
  • Loading branch information
barijaona committed Jun 17, 2024
1 parent a220562 commit 6882ae8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Vienna/Sources/Main window/ArticleController.m
Original file line number Diff line number Diff line change
Expand Up @@ -852,9 +852,13 @@ -(void)markAllFoldersReadByArray:(NSArray *)folderArray
// Smart and Search folders are not included in folderArray when you mark all subscriptions read,
// so we need to mark articles read if they're the current folder or might be inside it.
Folder * currentFolder = [[Database sharedManager] folderFromID:currentFolderId];
if (currentFolder != nil && (currentFolder.type == VNAFolderTypeGroup || ![folderArray containsObject:currentFolder])) {
for (Article * theArticle in folderArrayOfArticles)
if (currentFolder != nil &&
(currentFolder.type == VNAFolderTypeSmart || currentFolder.type == VNAFolderTypeGroup ||
![folderArray containsObject:currentFolder]))
{
for (Article *theArticle in folderArrayOfArticles) {
[theArticle markRead:YES];
}
}

[mainArticleView refreshFolder:VNARefreshRedrawList];
Expand Down

0 comments on commit 6882ae8

Please sign in to comment.