mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-27 06:46:52 +00:00
Update the showFeedNames timeline property based on what will be shown in the timeline.
This commit is contained in:
1 parent
e18496d1b0
commit
0c54e61fbc
1 file changed
+13
@@ -52,6 +52,19 @@ class TimelineViewController: NSViewController, UndoableCommandRunner {
|
||||
private var representedObjects: [AnyObject]? {
|
||||
didSet {
|
||||
if !representedObjectArraysAreEqual(oldValue, representedObjects) {
|
||||
|
||||
if let representedObjects = representedObjects {
|
||||
if representedObjects.count == 1 && representedObjects.first is Feed {
|
||||
showFeedNames = false
|
||||
}
|
||||
else {
|
||||
showFeedNames = true
|
||||
}
|
||||
}
|
||||
else {
|
||||
showFeedNames = false
|
||||
}
|
||||
|
||||
postTimelineSelectionDidChangeNotification(nil)
|
||||
fetchArticles()
|
||||
if articles.count > 0 {
|
||||
|
||||
Reference in new issue
Block a user