mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-13 10:12:48 +01:00
Handle scenario where all feeds are in folders and they all need to be removed from the account. Fixes #2741
This commit is contained in:
parent
6b0bdf8ca0
commit
4510ca8287
@ -178,7 +178,8 @@ extension NewsBlurAccountDelegate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle the account level feeds
|
// Handle the account level feeds. If there isn't the special folder, that means all the feeds are
|
||||||
|
// in folders and we need to remove them all from the account level.
|
||||||
if let folderRelationships = newsBlurFolderDict[" "] {
|
if let folderRelationships = newsBlurFolderDict[" "] {
|
||||||
let newsBlurFolderFeedIDs = folderRelationships.map { String($0.feedID) }
|
let newsBlurFolderFeedIDs = folderRelationships.map { String($0.feedID) }
|
||||||
for feed in account.topLevelWebFeeds {
|
for feed in account.topLevelWebFeeds {
|
||||||
@ -186,6 +187,10 @@ extension NewsBlurAccountDelegate {
|
|||||||
account.removeWebFeed(feed)
|
account.removeWebFeed(feed)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
for feed in account.topLevelWebFeeds {
|
||||||
|
account.removeWebFeed(feed)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user