mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-09 08:39:00 +01:00
Update iOS to work with new delete API.
This commit is contained in:
parent
50d3a5799c
commit
e45362bffc
@ -365,7 +365,14 @@ class MasterFeedViewController: ProgressTableViewController, UndoableCommandRunn
|
|||||||
let account = accountForNode(destNode)
|
let account = accountForNode(destNode)
|
||||||
let sourceContainer = sourceNode.parent?.representedObject as? Container
|
let sourceContainer = sourceNode.parent?.representedObject as? Container
|
||||||
let destinationFolder = destParentNode?.representedObject as? Folder
|
let destinationFolder = destParentNode?.representedObject as? Folder
|
||||||
sourceContainer?.deleteFeed(feed)
|
sourceContainer?.deleteFeed(feed) { [weak self] result in
|
||||||
|
switch result {
|
||||||
|
case .success:
|
||||||
|
break
|
||||||
|
case .failure(let error):
|
||||||
|
self?.presentError(error)
|
||||||
|
}
|
||||||
|
}
|
||||||
account?.addFeed(feed, to: destinationFolder)
|
account?.addFeed(feed, to: destinationFolder)
|
||||||
account?.structureDidChange()
|
account?.structureDidChange()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user