mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Re-sort the timeline when sort direction changes. Fix #65.
This commit is contained in:
@@ -617,7 +617,15 @@ private extension TimelineViewController {
|
||||
|
||||
func sortDirectionDidChange() {
|
||||
|
||||
// TODO
|
||||
let selectedArticleIDs = selectedArticles.articleIDs()
|
||||
|
||||
let unsortedArticles = Set(articles)
|
||||
updateArticles(with: unsortedArticles)
|
||||
|
||||
selectArticles(selectedArticleIDs)
|
||||
if tableView.selectedRow != -1 {
|
||||
tableView.scrollRowToVisible(tableView.selectedRow)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: Fetching Articles
|
||||
|
||||
Reference in New Issue
Block a user