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:
parent
f2228120b5
commit
0762074e91
|
@ -272,18 +272,7 @@ import RSCore
|
||||||
|
|
||||||
func outlineViewSelectionDidChange(_ notification: Notification) {
|
func outlineViewSelectionDidChange(_ notification: Notification) {
|
||||||
|
|
||||||
// TODO: support multiple selection
|
postSidebarSelectionDidChangeNotification(selectedObjects.isEmpty ? nil : selectedObjects)
|
||||||
|
|
||||||
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])
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue