mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00: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:
@@ -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[" "] {
|
||||
let newsBlurFolderFeedIDs = folderRelationships.map { String($0.feedID) }
|
||||
for feed in account.topLevelWebFeeds {
|
||||
@@ -186,6 +187,10 @@ extension NewsBlurAccountDelegate {
|
||||
account.removeWebFeed(feed)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for feed in account.topLevelWebFeeds {
|
||||
account.removeWebFeed(feed)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user