added subscription delete

This commit is contained in:
Maurice Parker
2019-05-09 07:25:45 -05:00
parent 49116fd8e3
commit 50d3a5799c
12 changed files with 95 additions and 18 deletions

View File

@@ -244,8 +244,14 @@ private extension SidebarOutlineDataSource {
}
let sourceContainer = node.parent?.representedObject as? Container
let destinationFolder = parentNode.representedObject as? Folder
sourceContainer?.deleteFeed(feed)
account.addFeed(feed, to: destinationFolder)
sourceContainer?.deleteFeed(feed) { result in
switch result {
case .success:
account.addFeed(feed, to: destinationFolder)
case .failure(let error):
NSApplication.shared.presentError(error)
}
}
}
func acceptLocalFeedsDrop(_ outlineView: NSOutlineView, _ draggedFeeds: Set<PasteboardFeed>, _ parentNode: Node, _ index: Int) -> Bool {