mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Merge branch 'mac-release'
This commit is contained in:
@@ -14,6 +14,10 @@ final class DetailWebView: WKWebView {
|
||||
|
||||
weak var keyboardDelegate: KeyboardDelegate?
|
||||
|
||||
override func accessibilityLabel() -> String? {
|
||||
return NSLocalizedString("Article", comment: "Article")
|
||||
}
|
||||
|
||||
// MARK: - NSResponder
|
||||
|
||||
override func keyDown(with event: NSEvent) {
|
||||
|
||||
@@ -13,6 +13,10 @@ class TimelineTableView: NSTableView {
|
||||
|
||||
weak var keyboardDelegate: KeyboardDelegate?
|
||||
|
||||
override func accessibilityLabel() -> String? {
|
||||
return NSLocalizedString("Timeline", comment: "Timeline")
|
||||
}
|
||||
|
||||
// MARK: - NSResponder
|
||||
|
||||
override func keyDown(with event: NSEvent) {
|
||||
|
||||
@@ -48,6 +48,7 @@ final class TimelineViewController: NSViewController, UndoableCommandRunner, Unr
|
||||
if articles.count > 0 {
|
||||
tableView.scrollRowToVisible(0)
|
||||
}
|
||||
updateUnreadCount()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -106,6 +107,7 @@ final class TimelineViewController: NSViewController, UndoableCommandRunner, Unr
|
||||
if showFeedNames != oldValue {
|
||||
updateShowAvatars()
|
||||
updateTableViewRowHeight()
|
||||
reloadVisibleCells()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -978,10 +980,7 @@ private extension TimelineViewController {
|
||||
}
|
||||
|
||||
func replaceArticles(with unsortedArticles: Set<Article>) {
|
||||
let sortedArticles = Array(unsortedArticles).sortedByDate(sortDirection)
|
||||
if articles != sortedArticles {
|
||||
articles = sortedArticles
|
||||
}
|
||||
articles = Array(unsortedArticles).sortedByDate(sortDirection)
|
||||
}
|
||||
|
||||
func fetchUnsortedArticlesSync(for representedObjects: [Any]) -> Set<Article> {
|
||||
|
||||
Reference in New Issue
Block a user