mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-26 09:33:25 +01:00
Don't attempt to move a feed if the drop target is the same as the source target.
This commit is contained in:
parent
6d18cfec7c
commit
d7c3f1ee19
@ -130,6 +130,8 @@ extension MasterFeedViewController: UITableViewDropDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func moveWebFeedInAccount(feed: WebFeed, sourceContainer: Container, destinationContainer: Container) {
|
func moveWebFeedInAccount(feed: WebFeed, sourceContainer: Container, destinationContainer: Container) {
|
||||||
|
guard sourceContainer !== destinationContainer else { return }
|
||||||
|
|
||||||
BatchUpdate.shared.start()
|
BatchUpdate.shared.start()
|
||||||
sourceContainer.account?.moveWebFeed(feed, from: sourceContainer, to: destinationContainer) { result in
|
sourceContainer.account?.moveWebFeed(feed, from: sourceContainer, to: destinationContainer) { result in
|
||||||
BatchUpdate.shared.end()
|
BatchUpdate.shared.end()
|
||||||
|
Loading…
Reference in New Issue
Block a user