mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Return [Article] from articlesForIndexes() instead of Set<Article>
This commit is contained in:
@@ -85,7 +85,7 @@ final class TimelineViewController: NSViewController, UndoableCommandRunner, Unr
|
||||
|
||||
var showsSearchResults = false
|
||||
var selectedArticles: [Article] {
|
||||
return Array(articles.articlesForIndexes(tableView.selectedRowIndexes))
|
||||
return articles.articlesForIndexes(tableView.selectedRowIndexes)
|
||||
}
|
||||
|
||||
var hasAtLeastOneSelectedArticle: Bool {
|
||||
|
||||
@@ -44,10 +44,10 @@ extension Array where Element == Article {
|
||||
return nil
|
||||
}
|
||||
|
||||
func articlesForIndexes(_ indexes: IndexSet) -> Set<Article> {
|
||||
return Set(indexes.compactMap{ (oneIndex) -> Article? in
|
||||
func articlesForIndexes(_ indexes: IndexSet) -> [Article] {
|
||||
return indexes.compactMap{ (oneIndex) -> Article? in
|
||||
return articleAtRow(oneIndex)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func sortedByDate(_ sortDirection: ComparisonResult, groupByFeed: Bool = false) -> ArticleArray {
|
||||
|
||||
Reference in New Issue
Block a user