Update the showFeedNames timeline property based on what will be shown in the timeline.
This commit is contained in:
parent
e18496d1b0
commit
0c54e61fbc
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue