diff --git a/Evergreen/MainWindow/Sidebar/SidebarViewController.swift b/Evergreen/MainWindow/Sidebar/SidebarViewController.swift index f3a97ca8b..07b4004c4 100644 --- a/Evergreen/MainWindow/Sidebar/SidebarViewController.swift +++ b/Evergreen/MainWindow/Sidebar/SidebarViewController.swift @@ -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) } }