When timeline reloads due to a change in sidebar selection, post the selection-did-change notification so that status bar view and detail view can go blank (instead of continuing to show the previous selection).

This commit is contained in:
Brent Simmons 2017-11-05 20:59:30 -08:00
parent 8401d0f2f9
commit 11aa68fd6f
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ class TimelineViewController: NSViewController, KeyboardDelegate, UndoableComman
private var representedObjects: [AnyObject]? {
didSet {
if !representedObjectArraysAreEqual(oldValue, representedObjects) {
postTimelineSelectionDidChangeNotification(nil)
fetchArticles()
if articles.count > 0 {
tableView.scrollRowToVisible(0)