Support display of articles in the timeline from multiple items selected in the sidebar. As a side effect: fix #295.

This commit is contained in:
Brent Simmons 2018-02-12 22:13:37 -08:00
parent f2228120b5
commit 0762074e91
1 changed files with 1 additions and 12 deletions

View File

@ -272,18 +272,7 @@ import RSCore
func outlineViewSelectionDidChange(_ notification: Notification) {
// TODO: support multiple selection
let selectedRow = self.outlineView.selectedRow
if selectedRow < 0 || selectedRow == NSNotFound {
postSidebarSelectionDidChangeNotification(nil)
return
}
if let selectedNode = self.outlineView.item(atRow: selectedRow) as? Node {
postSidebarSelectionDidChangeNotification([selectedNode.representedObject])
}
postSidebarSelectionDidChangeNotification(selectedObjects.isEmpty ? nil : selectedObjects)
}
}